Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
munin20
> munin-vhost.template
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File munin-vhost.template of Package munin20
<VirtualHost *:80> ServerName munin.example.org ServerAlias munin ServerAdmin info@example.org DocumentRoot /srv/www/munin.example.org ErrorLog /var/log/apache2/munin.example.org-error.log CustomLog /var/log/apache2/munin.example.org-access.log combined ServerSignature Off Alias /static /etc/munin/static # Rewrites RewriteEngine On # HTML RewriteCond %{REQUEST_URI} !^/static RewriteCond %{REQUEST_URI} .html$ [or] RewriteCond %{REQUEST_URI} =/ RewriteRule ^/(.*) /srv/www/cgi-bin/munin-cgi-html/$1 [L] # Images # - remove path to munin-cgi-graph, if present RewriteRule ^/cgi-bin/munin-cgi-graph/(.*) /$1 RewriteCond %{REQUEST_URI} !^/static RewriteCond %{REQUEST_URI} .png$ RewriteRule ^/(.*) /srv/www/cgi-bin/munin-cgi-graph/$1 [L] <Directory /etc/munin/static> Allow from All </Directory> # Ensure we can run (fast)cgi scripts <Directory "/srv/www/cgi-bin"> Options +ExecCGI <IfModule mod_fcgid.c> SetHandler fcgid-script </IfModule> <IfModule !mod_fcgid.c> SetHandler cgi-script </IfModule> </Directory> </VirtualHost>