Created
September 12, 2014 19:11
-
-
Save bert2002/190375236c760d6f05f2 to your computer and use it in GitHub Desktop.
Apache 2.4 und Munin 2 Vhost configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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