From d677ff369abd35ad0671e7061884430189cc994c Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 15 Aug 2016 13:09:31 +0200 Subject: [PATCH] ansible-inventories/arocom#163 Configure HaProxy and Varnish to also handle BAN requests on port 80 --- templates/haproxy_cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/haproxy_cfg b/templates/haproxy_cfg index 051a768..a500d17 100644 --- a/templates/haproxy_cfg +++ b/templates/haproxy_cfg @@ -92,6 +92,8 @@ frontend http_in {% if varnish_host|default(false) %} acl is_purge method PURGE use_backend backend_varnish if is_purge + acl is_ban method BAN + use_backend backend_varnish if is_ban acl domain_ignores_varnish hdr(host) -i -n -f /etc/haproxy/ignore_varnish.list use_backend backend_varnish_bigpipe if domain_uses_bigpipe !domain_ignores_varnish acl static_content path_end .jpg .jpeg .gif .png .ico .swf .css .js .htm .html -- GitLab