Comment 2 for bug 231706

Revision history for this message
Morten Siebuhr (msiebuhr) wrote : Re: munin apache plugin no data

I've made a "localhost" virtual host that serves munin with data:

<VirtualHost *:80>
    # vim:syntax=apache
    ServerAdmin root@localhost
    ServerName localhost
    ServerAlias 127.0.0.1

    DocumentRoot /srv/http/localhost/

    <Location /server-status>
        SetHandler server-status
    </Location>

    <Location />
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
        Allow from ::1
    </Location>

    # Logging
    ErrorLog /var/log/apache2/localhost.error.log
    LogLevel warn
    CustomLog /var/log/apache2/localhost.access.log combined
</VirtualHost>

Copy into /etc/apache2/sites-available/localhost.conf, then run a2ensite localhost.conf and /etc/init.d/apache2 reload