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

ansible-inventories/arocom#116 Support Drupal aliases without redirect

parent 83781f2b
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,9 @@ 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 %}
......@@ -111,7 +113,9 @@ 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