munin: fix cgi graph generation #163
1 changed files with 7 additions and 6 deletions
|
@ -1,19 +1,20 @@
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName {{ munin_servername }}
|
ServerName {{ munin_servername }}
|
||||||
|
|
||||||
# Redirect requests without /munin to /munin
|
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
|
||||||
RedirectMatch ^/$ /munin/
|
ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html
|
||||||
|
|
||||||
# Existing configuration for serving /munin
|
|
||||||
<Directory /etc/munin/static>
|
<Directory /etc/munin/static>
|
||||||
Require all granted
|
Require all granted
|
||||||
Options None
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Location /munin-cgi/munin-cgi-graph>
|
<Directory /usr/lib/munin/cgi>
|
||||||
Require all granted
|
Require all granted
|
||||||
<IfModule mod_fcgid.c>
|
<IfModule mod_fcgid.c>
|
||||||
SetHandler fcgid-script
|
SetHandler fcgid-script
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</Location>
|
<IfModule !mod_fcgid.c>
|
||||||
|
SetHandler cgi-script
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
Loading…
Reference in a new issue