Skip to content
Snippets Groups Projects
Commit 9bda5645 authored by jurgenhaas's avatar jurgenhaas
Browse files

Do not provide private files from Varnish

parent 47f43d90
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,8 @@ frontend http_in
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
use_backend backend_varnish if static_content !domain_ignores_varnish
acl static_content_private path_beg /system/
use_backend backend_varnish if static_content !static_content_private !domain_ignores_varnish
{% endif %}
{% if 'webserver' in groups %}
{% for host in groups['webserver']|sort %}
......@@ -289,7 +290,8 @@ frontend https_in_{{ cert.ip }}
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
use_backend backend_varnish if static_content !domain_ignores_varnish
acl static_content_private path_beg /system/
use_backend backend_varnish if static_content !static_content_private !domain_ignores_varnish
{% endif %}
{% if 'webserver' in groups %}
{% for host in groups['webserver']|sort %}
......
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