From df9d889e32fe5ff7a1406e5677acdb40e2ca1695 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 13 Jun 2016 08:28:08 +0200 Subject: [PATCH] Let the crm lists work with wildcards, i.e. only parts of the hostname need to match --- templates/haproxy_cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haproxy_cfg b/templates/haproxy_cfg index d93bab9..4e49002 100644 --- a/templates/haproxy_cfg +++ b/templates/haproxy_cfg @@ -91,7 +91,7 @@ frontend http_in acl domain_in_{{host}} hdr(host) -i -n -f /etc/haproxy/{{host}}.list use_backend backend_{{host}} if domain_in_{{host}} {% if hostvars[host].proxy_crm_domains is defined %} - acl crm_domain_in_{{host}} hdr(host) -i -n -f /etc/haproxy/{{host}}.crm.list + acl crm_domain_in_{{host}} hdr_dom(host) -i -n -f /etc/haproxy/{{host}}.crm.list use_backend backend_{{host}} if crm_domain_in_{{host}} {% endif %} acl redirect_ssl_{{host}} hdr(host) -i -n -f /etc/haproxy/{{host}}.ssl.list -- GitLab