X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/18d192a0b455a06baa03b76f87f4e97cad6c1a3f..7f60aad6f04a069a4cd35b312292dbed16898c1d:/cookbooks/munin/templates/default/apache.erb diff --git a/cookbooks/munin/templates/default/apache.erb b/cookbooks/munin/templates/default/apache.erb index aaf8b5c90..d5a2267d6 100644 --- a/cookbooks/munin/templates/default/apache.erb +++ b/cookbooks/munin/templates/default/apache.erb @@ -12,7 +12,10 @@ ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/ RewriteEngine on - RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT] + RewriteCond %{REQUEST_URI} !^/static/ + RewriteCond %{REQUEST_URI} .html$ [or] + RewriteCond %{REQUEST_URI} =/ + RewriteRule ^/(.*) /munin-cgi/munin-cgi-html/$1 [PT]