]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/templates/default/apache.erb
Munin add static + root support to rewrite
[chef.git] / cookbooks / munin / templates / default / apache.erb
index aaf8b5c909664b18e4c19c01c858b3d09f96f227..d5a2267d61c47f0e966247b1249279048d4a0431 100644 (file)
        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]
 </VirtualHost>
 
 <Directory /var/cache/munin/www>