homeserver/roles/mgrote_munin_server/templates/apache.conf
2024-08-21 20:05:27 +02:00

24 lines
716 B
ApacheConf

<VirtualHost *:80>
ServerName {{ munin_servername }}
# Redirect requests without /munin to /munin
RedirectMatch ^/$ /munin/
# Existing configuration for serving /munin
Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
Require all granted
Options None
</Directory>
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>
</VirtualHost>