X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/9a6be95beae2df27bc2bb6d14e7020660d4f3bc5..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]