]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/apache.erb
15c5009e66c1739776769b294363c4989531f7a9
[chef.git] / cookbooks / munin / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName munin.openstreetmap.org
5         ServerAlias munin.osm.org
6         ServerAdmin webmaster@openstreetmap.org
7
8         CustomLog /var/log/apache2/munin.openstreetmap.org-access.log combined
9         ErrorLog /var/log/apache2/munin.openstreetmap.org-error.log
10
11         SetEnv RRDCACHED_ADDRESS /var/run/rrdcached.sock
12
13         DocumentRoot /srv/munin.openstreetmap.org
14         Alias /static/favicon.ico /srv/munin.openstreetmap.org/favicon.ico
15         Alias /static/ /etc/munin/static/
16         ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
17
18         # Remove Proxy request header to mitigate https://httpoxy.org/
19         RequestHeader unset Proxy early
20
21         RewriteEngine on
22         RewriteCond %{REQUEST_URI} !^/static/
23         RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]
24 </VirtualHost>
25
26 <Directory /srv/munin.openstreetmap.org>
27         Require all granted
28 </Directory>
29
30 <Directory /etc/munin/static>
31         Require all granted
32 </Directory>
33
34 <Directory /usr/lib/munin/cgi>
35         Options +ExecCGI
36         SetHandler fcgid-script
37         Require all granted
38 </Directory>