X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/13d93b0c9ef6c839d0ee550ded6e845a4a827fc9..752fbabf060f31db7de3f03d632bc047baba5087:/cookbooks/munin/templates/default/apache.erb diff --git a/cookbooks/munin/templates/default/apache.erb b/cookbooks/munin/templates/default/apache.erb index 141d2a50f..15c5009e6 100644 --- a/cookbooks/munin/templates/default/apache.erb +++ b/cookbooks/munin/templates/default/apache.erb @@ -15,6 +15,9 @@ Alias /static/ /etc/munin/static/ ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/ + # Remove Proxy request header to mitigate https://httpoxy.org/ + RequestHeader unset Proxy early + RewriteEngine on RewriteCond %{REQUEST_URI} !^/static/ RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]