Enable directory indexes for munin/dumps
[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         RewriteCond %{REQUEST_URI} !^/dumps/
24         RewriteRule ^(/.*\.html)?$ /munin-cgi/munin-cgi-html/$1 [PT]
25 </VirtualHost>
26
27 <Directory /srv/munin.openstreetmap.org>
28         Require all granted
29 </Directory>
30
31 <Directory /srv/munin.openstreetmap.org/dumps>
32         Options +Indexes
33 </Directory>
34
35 <Directory /etc/munin/static>
36         Require all granted
37 </Directory>
38
39 <Directory /usr/lib/munin/cgi>
40         Options +ExecCGI
41         SetHandler fcgid-script
42         Require all granted
43 </Directory>