diff --git a/roles/mgrote_munin_server/templates/apache.conf b/roles/mgrote_munin_server/templates/apache.conf index c561850a..4d21bc08 100644 --- a/roles/mgrote_munin_server/templates/apache.conf +++ b/roles/mgrote_munin_server/templates/apache.conf @@ -1,21 +1,24 @@ + ServerName {{ munin_servername }} - ServerName {{ munin_servername }} + # Redirect requests without /munin to /munin + RedirectMatch ^/$ /munin/ - Alias /munin /var/cache/munin/www - - Require all granted - Options None - + # Existing configuration for serving /munin + Alias /munin /var/cache/munin/www + + Require all granted + Options None + - ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph - - Require all granted - - SetHandler fcgid-script - - - SetHandler cgi-script - - + ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph + + Require all granted + + SetHandler fcgid-script + + + SetHandler cgi-script + +