]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/apache.erb
Tidy up munin www config
[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         DocumentRoot /srv/munin.openstreetmap.org
12         Alias /static/favicon.ico /srv/munin.openstreetmap.org/favicon.ico
13         Alias /static/ /etc/munin/static/
14         ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
15
16         RewriteEngine on
17         RewriteCond %{REQUEST_URI} !^/static/
18         RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]
19 </VirtualHost>
20
21 <Directory /srv/munin.openstreetmap.org>
22         Require all granted
23 </Directory>
24
25 <Directory /etc/munin/static>
26         Require all granted
27 </Directory>
28
29 <Directory /usr/lib/munin/cgi>
30         Options +ExecCGI
31         SetHandler fcgid-script
32         Require all granted
33 </Directory>