2024-08-12 23:46:08 +02:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ munin_servername }}
|
|
|
|
|
2024-08-21 20:05:27 +02:00
|
|
|
# Redirect requests without /munin to /munin
|
2024-08-21 20:18:49 +02:00
|
|
|
RedirectMatch ^/$ /munin-cgi/
|
2024-08-12 23:46:08 +02:00
|
|
|
|
2024-08-21 20:05:27 +02:00
|
|
|
# Existing configuration for serving /munin
|
|
|
|
Alias /munin /var/cache/munin/www
|
|
|
|
<Directory /var/cache/munin/www>
|
|
|
|
Require all granted
|
|
|
|
Options None
|
2024-08-21 19:57:53 +02:00
|
|
|
</Directory>
|
|
|
|
|
2024-08-21 20:05:27 +02:00
|
|
|
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
|
|
|
|
<Location /munin-cgi/munin-cgi-graph>
|
|
|
|
Require all granted
|
|
|
|
<IfModule mod_fcgid.c>
|
|
|
|
SetHandler fcgid-script
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_fcgid.c>
|
|
|
|
SetHandler cgi-script
|
|
|
|
</IfModule>
|
|
|
|
</Location>
|
2024-08-12 23:46:08 +02:00
|
|
|
</VirtualHost>
|