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

Prepare apache for letsencrypt challenge webroot

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