Fiexed rule to let certbot renew work

This commit is contained in:
Charlie Root 2024-07-20 23:22:24 +02:00
parent e7596c6ec7
commit ef925fce83
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,8 @@
Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/" Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/"
RewriteRule "^/.well-known/acme-challenge/" - [L] RewriteRule "^/.well-known/acme-challenge/" - [L]
DocumentRoot "{{vars.apache_vhost.site.doc_root}}" 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]
</VirtualHost> </VirtualHost>
<VirtualHost *:443> <VirtualHost *:443>
ServerAdmin {{vars.apache_vhost.site.email}} ServerAdmin {{vars.apache_vhost.site.email}}
@ -60,6 +61,9 @@
RewriteEngine On RewriteEngine On
Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/" Alias /.well-known/acme-challenge/ "{{vars.apache.default_html_dir}}/.well-known/acme-challenge/"
RewriteRule "^/.well-known/acme-challenge/" - [L] RewriteRule "^/.well-known/acme-challenge/" - [L]
<Location /.well-known/acme-challenge/ >
</Location>
{{{vars.apache_vhost.site.raw}}} {{{vars.apache_vhost.site.raw}}}
</VirtualHost> </VirtualHost>
{{/vars.apache_vhost.site.ssl}} {{/vars.apache_vhost.site.ssl}}