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

#1903 Add docker specific specs into vhost

parent e065dfbc
Branches
No related tags found
No related merge requests found
......@@ -41,8 +41,22 @@
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
{% if drupal.docker|default(false) %}
ServerSignature Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8181/
ProxyPassReverse / http://127.0.0.1:8181/
<Location />
Require all granted
ProxyPassReverse http://127.0.0.1:8181
ProxyPassReverse http{{ (drupal_domain.protocol|default("https") == 'https')|ternary('s','') }}://drupal_domain.domain/
</Location>
{% else %}
{% if php_fpm and drupal.jail is defined and not php_fpm_socket|default(false) %}
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:{{ drupal.jail.port }}{{ drupalRoot }}/$1
{% endif %}
{% endif %}
SetEnv HTTP_X_FORWARDED_HOST {{ drupal_domain.domain }}
SetEnv HTTPS {{ (drupal_domain.protocol|default("https") == 'https')|ternary('on','off') }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment