Skip to content
Snippets Groups Projects
Commit f87d370c authored by jurgenhaas's avatar jurgenhaas
Browse files

Further improve letsencrypt to run without stopping apache server while it's running

parent 2061934d
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
- 'global-redirect' - 'global-redirect'
- 'global-deny' - 'global-deny'
- 'letsencrypt-redirect' - 'letsencrypt-redirect'
- 'redirect-ssl'
- 'other-vhosts-access-log' - 'other-vhosts-access-log'
notify: notify:
- "Apache | Restart Apache" - "Apache | Restart Apache"
......
RewriteEngine on
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/*
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
ProxyPass /.well-known/acme-challenge ! ProxyPass /.well-known/acme-challenge !
Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge
<Directory "/var/www/html/.well-known/acme-challenge"> <Directory "/var/www/html/.well-known/acme-challenge">
......
RewriteEngine on
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/*
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment