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

ansible-inventories/arocom#116 Remove support for Drupal aliases without redirect again

parent 7fe4f3ad
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,7 @@ frontend http_in
{% for domain in drupal.domains|default([]) %}
{% if not domain.multidomain|default(false) %}
{% for alias in domain.aliases|default([]) %}
{% if domain.aliases_without_redirect is not defined or alias not in domain.aliases_without_redirect %}
redirect prefix {{ domain.protocol|default('https') }}://{{domain.domain}} code 301 if { hdr(host) -i -n {{alias}} }
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
......@@ -113,9 +111,7 @@ frontend https_in_{{ cert.ip }}
{% for domain in drupal.domains|default([]) %}
{% if not domain.multidomain|default(false) %}
{% for alias in domain.aliases|default([]) %}
{% if domain.aliases_without_redirect is not defined or alias not in domain.aliases_without_redirect %}
redirect prefix {{ domain.protocol|default('https') }}://{{domain.domain}} code 301 if { hdr(host) -i -n {{alias}} }
{% endif %}
{% endfor %}
{% endif %}
{% 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