- make it work with current munin version
[packages/munin.git] / munin-apache.conf
1 Alias /munin/static /etc/webapps/munin/templates/static
2
3 <Directory /etc/webapps/munin/templates/static>
4         AllowOverride None
5         Order allow,deny
6         Allow from all
7 </Directory>
8
9 # Configuration for 'html_strategy cgi'
10 #ScriptAlias /munin /usr/share/munin/cgi/munin-cgi-html
11
12 ScriptAlias /munin-cgi/munin-cgi-graph /usr/share/munin/cgi/munin-cgi-graph
13
14 # Ensure we can run (fast)cgi scripts
15 <Directory /usr/share/munin/cgi>
16         Options +ExecCGI
17         <IfModule mod_fcgid.c>
18                 SetHandler fcgid-script
19         </IfModule>
20         <IfModule mod_fastcgi.c>
21                 SetHandler fastcgi-script
22         </IfModule>
23         <IfModule !mod_fastcgi.c>
24                 <IfModule !mod_fcgid.c>
25                         SetHandler cgi-script
26                 </IfModule>
27         </IfModule>
28
29         AllowOverride None
30
31         Order allow,deny
32         Allow from all
33 # OR
34         # Make Munin password protected
35 #       AuthUserFile /etc/webapps/munin/htpasswd
36 #       AuthName "Munin"
37 #       AuthType Basic
38 #       require valid-user
39 </Directory>
40
41 # Configuration for 'html_strategy cron' (default)
42 Alias /munin /var/lib/munin/html/
43
44 <Directory /var/lib/munin/html>
45         AllowOverride None
46
47         Order allow,deny
48         Allow from all
49 # OR
50         # Make Munin password protected
51 #       AuthUserFile /etc/webapps/munin/htpasswd
52 #       AuthName "Munin"
53 #       AuthType Basic
54 #       require valid-user
55
56         <IfModule mod_expires>
57                 # Set the default expiery time for files 5 minutes 10 seconds
58                 # from their creation (modification) time.
59                 # There are probably new files by that time.
60
61                 ExpiresActive On
62                 ExpiresDefault M310
63         </IfModule>
64 </Directory>