diff options
Diffstat (limited to 'src/property/apache.lisp')
-rw-r--r-- | src/property/apache.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/property/apache.lisp b/src/property/apache.lisp index 4b94107..375d65f 100644 --- a/src/property/apache.lisp +++ b/src/property/apache.lisp @@ -135,7 +135,7 @@ Unapplying removes the Apache site config but leaves the certificate behind." "RewriteEngine On" "RewriteRule ^/.well-known/acme-challenge.* - [L]" ;; redirect everything else to https - ,(strcat "RewriteRule ^/(.*) https://" name "/$1 [L,R,NE]") + "RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L,NE]" ,@additional-config "</VirtualHost>"))))) (on-change (lets-encrypt:certificate-obtained |