diff --git a/templates/haproxy_cfg.jinja2 b/templates/haproxy_cfg.jinja2 index c9f576c89d2c6e21c2e1ad1c4b13e7733a58000c..66345377b24711c2a739f93f30a1b774bebff519 100644 --- a/templates/haproxy_cfg.jinja2 +++ b/templates/haproxy_cfg.jinja2 @@ -180,7 +180,7 @@ frontend http_in {% endfor %} {% if hostvars[host].proxy_crm_domains is defined %} 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}} + use_backend backend_redirect_ssl if crm_domain_in_{{host}} {% endif %} {% endfor %} {% endif %} @@ -309,6 +309,8 @@ frontend https_in_{{ cert.ip }} use_backend backend_{{host}}_https if proxy_special_rules_{{host}}_{{rule}} {% endfor %} {% if hostvars[host].proxy_crm_domains is defined %} + acl crm_domain_in_{{host}} hdr_dom(host) -i -n -f /etc/haproxy/{{host}}.crm.list + use_backend backend_{{host}}_https if crm_domain_in_{{host}} {% endif %} {% endfor %} {% endif %}