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

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

parent 94ded66c
Branches
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
ServerAlias {{ drupal_domain.domain }}{% for alias in drupal_domain.aliases|default([]) %} {{ alias }}{% endfor %}
{% endif %}
Include /etc/apache2/{{ apache_conf_dir }}/redirect-ssl.conf
Include /etc/apache2/{{ apache_conf_dir }}/letsencrypt-redirect.conf
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
......@@ -169,7 +170,9 @@
{% endfor %}
RewriteEngine on
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/*
RewriteRule {{ drupal_domain.aliases_redirect_pattern|default('^') }} {{ drupal_domain.protocol|default("https") }}://{{ drupal_domain.domain }}%{REQUEST_URI} [END,QSA,R=permanent]
Include /etc/apache2/{{ apache_conf_dir }}/letsencrypt-redirect.conf
</VirtualHost>
{% if drupal_domain.protocol|default("https") == "https" and groups.proxyserver is not defined %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment