]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/templates/default/apache.erb
Add cache hit rate graphs to consolidated reports
[chef.git] / cookbooks / munin / templates / default / apache.erb
index ecb4b4df4ee41b94e7496c701c6a962a73fc94b7..15c5009e66c1739776769b294363c4989531f7a9 100644 (file)
@@ -8,11 +8,16 @@
        CustomLog /var/log/apache2/munin.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/munin.openstreetmap.org-error.log
 
+       SetEnv RRDCACHED_ADDRESS /var/run/rrdcached.sock
+
        DocumentRoot /srv/munin.openstreetmap.org
-        Alias /static/favicon.ico /srv/munin.openstreetmap.org/favicon.ico
+       Alias /static/favicon.ico /srv/munin.openstreetmap.org/favicon.ico
        Alias /static/ /etc/munin/static/
        ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
 
+       # Remove Proxy request header to mitigate https://httpoxy.org/
+       RequestHeader unset Proxy early
+
        RewriteEngine on
        RewriteCond %{REQUEST_URI} !^/static/
        RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]