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