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

Change default for alias_redirect to false and handle it for HaProxy too

parent 5ff4c54b
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ frontend http_in
{% if proxy_redirect_aliase %}
{% for drupal in hostvars[host].drupal_settings|default([]) %}
{% for domain in drupal.domains|default([]) %}
{% if not domain.multidomain|default(false) %}
{% if not domain.multidomain|default(false) and domain.aliases_redirect|default(true) %}
{% for alias in domain.aliases|default([]) %}
redirect prefix {{ domain.protocol|default('https') }}://{{domain.domain}} code 301 if !letsencrypt_challenge { hdr(host) -i -n {{alias}} }
{% endfor %}
......@@ -263,7 +263,7 @@ frontend https_in_{{ cert.ip }}
{% if proxy_redirect_aliase %}
{% for drupal in hostvars[host].drupal_settings|default([]) %}
{% for domain in drupal.domains|default([]) %}
{% if not domain.multidomain|default(false) %}
{% if not domain.multidomain|default(false) and domain.aliases_redirect|default(true) %}
{% for alias in domain.aliases|default([]) %}
redirect prefix {{ domain.protocol|default('https') }}://{{domain.domain}} code 301 if { hdr(host) -i -n {{alias}} }
{% endfor %}
......
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