Fix HTTP -> HTTPS redirect for Let's Encrypt to work

Without the trailing slash in the Redirect the certificate renewal using Let's Encrypt fails because the URL is malformed to "example.com.well.known/"
This commit is contained in:
evil_pro
2023-03-04 01:40:36 +01:00
committed by GitHub
parent a4155e5afb
commit 43012f83c9
+1 -1
View File
@@ -12,7 +12,7 @@ title: Apache
ServerName DOMAIN_NAME
# Comment to prevent HTTP to HTTPS redirect
Redirect permanent / https://DOMAIN_NAME
Redirect permanent / https://DOMAIN_NAME/
ErrorLog /var/log/apache2/DOMAIN_NAME-error.log
CustomLog /var/log/apache2/DOMAIN_NAME-access.log combined