Skip to content

Instantly share code, notes, and snippets.

@bert2002
Created September 12, 2014 19:11
Show Gist options
  • Save bert2002/190375236c760d6f05f2 to your computer and use it in GitHub Desktop.
Save bert2002/190375236c760d6f05f2 to your computer and use it in GitHub Desktop.
Apache 2.4 und Munin 2 Vhost configuration
Alias /munin /var/cache/munin/www
<Directory "/var/cache/munin/www">
AuthUserFile /etc/apache2/munin.pw
AuthName "Restricted"
AuthType Basic
require valid-user
</Directory>
RewriteEngine On
RewriteRule ^/favicon.ico /etc/munin/static/favicon.ico [L]
RewriteRule ^/static/(.*) /etc/munin/static/$1 [L]
<Directory "/etc/munin/static">
Require all granted
</Directory>
<Directory "/usr/lib/munin/cgi">
Options +ExecCGI
Require all granted
<IfModule mod_fcgid.c>
SetHandler fcgid-script
</IfModule>
<IfModule !mod_fcgid.c>
SetHandler cgi-script
</IfModule>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment