DirectoryIndex index.php index.html
ServerName munin.mgrote.net
ServerAlias munin
ServerAdmin info@mgrote.net
DocumentRoot /var/www/html/munin.mgrote.net
ErrorLog /var/log/apache2/munin.mgrote.net-error.log
CustomLog /var/log/apache2/munin.mgrote.net-access.log combined
# Rewrites
RewriteEngine On
# Static content in /static
RewriteRule ^/favicon.ico /etc/munin/static/favicon.ico [L]
RewriteRule ^/static/(.*) /etc/munin/static/$1 [L]
# HTML
RewriteCond %{REQUEST_URI} .html$ [or]
RewriteCond %{REQUEST_URI} =/
RewriteRule ^/(.*) /usr/lib/munin/cgi/munin-cgi-html/$1 [L]
# Images
RewriteRule ^/munin-cgi/munin-cgi-graph/(.*) /usr/lib/munin/cgi/munin-cgi-graph/$1 [L]
# Ensure we can run (fast)cgi scripts
Options +ExecCGI
SetHandler fcgid-script
SetHandler cgi-script