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

Prepare apache for letsencrypt challenge webroot

parent 6cee92ba
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,6 @@ drupal_post_deploy_tasks:
- 'sset system.maintenance_mode 0'
- 'cache-rebuild'
letsencrypt_pause_services:
- 'apache2'
fstype_convert:
btrfs: 'btrfs-convert --no-progress {{ item.src }}'
ext4: 'mkfs.ext4 {{ item.src }}'
......@@ -9,8 +9,7 @@
ServerAlias {{ drupal_domain.domain }}{% for alias in drupal_domain.aliases|default([]) %} {{ alias }}{% endfor %}
{% endif %}
RewriteEngine on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
Include /etc/apache2/{{ apache_conf_dir }}/letsencrypt-redirect.conf
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
{% if drupal_domain.apache_log is defined %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment