From d709523ac8393d09f101f6b813d49eaf56482332 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 14:16:44 +0200 Subject: [PATCH] dd --- .../mgrote_munin_server/templates/apache.conf | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) 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 + +