wiki:WorkingApacheCGIConf

This is a working 2.0.x Munin for Apache 2.2.x FastCGI conf :

This was known as http://pastebin.com/y5F7eb7Z .

Beware that this has no auth built-in.

# Enable this for template generation
Alias /munin /var/cache/munin/www

# Enable this for cgi-based templates
Alias /munin-cgi/static /var/cache/munin/www/static
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html

<Directory /var/cache/munin/www>
        Order allow,deny
        Allow from all
        Options None

    <IfModule mod_expires.c>
        ExpiresActive On
    	ExpiresDefault M310
    </IfModule>

</Directory> 

# Enables fastcgi for munin-cgi-html if present
<Location /munin-cgi>
    <IfModule mod_fastcgi.c>
        SetHandler fastcgi-script
    </IfModule>
</Location>

<Location /munin-cgi/static>
	SetHandler None
</Location>

# Enables fastcgi for munin-cgi-graph if present
<Location /munin-cgi/munin-cgi-graph>
        <IfModule mod_fastcgi.c>
                SetHandler fastcgi-script
        </IfModule>
</Location>

<Location /munin-cgi/munin-cgi-html>
        <IfModule mod_fastcgi.c>
                SetHandler fastcgi-script
        </IfModule>
</Location>

Last modified at 2012-09-14T14:33:31+02:00 Last modified on 2012-09-14T14:33:31+02:00