From 7f60aad6f04a069a4cd35b312292dbed16898c1d Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 16 Mar 2015 00:25:03 +0000 Subject: [PATCH 1/1] Munin add static + root support to rewrite --- cookbooks/munin/templates/default/apache.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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] -- 2.43.2