Deploy httpd config to prevent varnish attacks
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
753f640cd6
commit
ef52ab8e89
2 changed files with 18 additions and 0 deletions
|
@ -52,6 +52,20 @@
|
|||
- httpd
|
||||
- httpd/website
|
||||
|
||||
- name: Copy over varnish workaround for {{name}}
|
||||
template: >
|
||||
src=blockchunked.conf
|
||||
dest=/etc/httpd/conf.d/{{name}}/blockchunked.conf
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
notify:
|
||||
- reload proxyhttpd
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/website
|
||||
- security/workaround
|
||||
|
||||
- name: And lastly, the robots.txt file
|
||||
copy: >
|
||||
src={{item}}
|
||||
|
|
4
roles/httpd/website/templates/blockchunked.conf
Normal file
4
roles/httpd/website/templates/blockchunked.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Workaround for https://www.varnish-cache.org/lists/pipermail/varnish-announce/2017-August/000722.html
|
||||
<If "%{HTTP:Transfer-Encoding} == 'chunked'">
|
||||
Require all denied
|
||||
</If>
|
Loading…
Add table
Add a link
Reference in a new issue