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
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 apache2/ localhost. error.log apache2/ localhost. access. log combined
ErrorLog /var/log/
LogLevel warn
CustomLog /var/log/
</VirtualHost>
Copy into /etc/apache2/ sites-available /localhost. conf, then run a2ensite localhost.conf and /etc/init.d/apache2 reload