projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a6be95
)
Munin add static + root support to rewrite
author
Grant Slater
<git@firefishy.com>
Mon, 16 Mar 2015 00:25:03 +0000
(
00:25
+0000)
committer
Grant Slater
<git@firefishy.com>
Mon, 16 Mar 2015 00:25:22 +0000
(
00:25
+0000)
cookbooks/munin/templates/default/apache.erb
patch
|
blob
|
history
diff --git
a/cookbooks/munin/templates/default/apache.erb
b/cookbooks/munin/templates/default/apache.erb
index aaf8b5c909664b18e4c19c01c858b3d09f96f227..d5a2267d61c47f0e966247b1249279048d4a0431 100644
(file)
--- 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]
</VirtualHost>
<Directory /var/cache/munin/www>