]> git.openstreetmap.org Git - chef.git/commitdiff
Munin add static + root support to rewrite
authorGrant Slater <git@firefishy.com>
Mon, 16 Mar 2015 00:25:03 +0000 (00:25 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 16 Mar 2015 00:25:22 +0000 (00:25 +0000)
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>