From ef925fce835eaa79c2313febc9eeab4d1aac881b Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sat, 20 Jul 2024 23:22:24 +0200 Subject: [PATCH] Fiexed rule to let certbot renew work --- templates/httpd-vhost.conf.mustache | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/httpd-vhost.conf.mustache b/templates/httpd-vhost.conf.mustache index bb33658..5da79e9 100644 --- a/templates/httpd-vhost.conf.mustache +++ b/templates/httpd-vhost.conf.mustache @@ -39,7 +39,8 @@ Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/" RewriteRule "^/.well-known/acme-challenge/" - [L] DocumentRoot "{{vars.apache_vhost.site.doc_root}}" - Redirect permanent / https://{{vars.apache_vhost.site.domain}}/ +# Redirect permanent / https://{{vars.apache_vhost.site.domain}}/ + RewriteRule ^(.*)$ https://{{vars.apache_vhost.site.domain}}$1 [R=301,L] ServerAdmin {{vars.apache_vhost.site.email}} @@ -60,6 +61,9 @@ RewriteEngine On Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/" RewriteRule "^/.well-known/acme-challenge/" - [L] + + + {{{vars.apache_vhost.site.raw}}} {{/vars.apache_vhost.site.ssl}}