d5a2267d61c47f0e966247b1249279048d4a0431
[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 /var/cache/munin/www
12         ScriptAlias /munin-cgi/ /usr/lib/munin/cgi/
13
14         RewriteEngine on
15         RewriteCond %{REQUEST_URI} !^/static/
16         RewriteCond %{REQUEST_URI} .html$ [or]
17         RewriteCond %{REQUEST_URI} =/
18         RewriteRule ^/(.*) /munin-cgi/munin-cgi-html/$1 [PT]
19 </VirtualHost>
20
21 <Directory /var/cache/munin/www>
22         Require all granted
23 </Directory>
24
25 <Directory /usr/lib/munin/cgi>
26         Options +ExecCGI
27         SetHandler fcgid-script
28         Require all granted
29 </Directory>