From a3293eb6ab8eda6c1e1d350aaa03b7dbae5430d4 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 11 May 2016 11:58:28 +0200
Subject: [PATCH] ansible-inventories/arocom#116 Remove support for Drupal
 aliases without redirect again

---
 templates/haproxy_cfg | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/templates/haproxy_cfg b/templates/haproxy_cfg
index 9490775..9d3f468 100644
--- a/templates/haproxy_cfg
+++ b/templates/haproxy_cfg
@@ -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 %}
-- 
GitLab