Avoid Apache's mod_status being exposed by Varnish

Posted by Peteris Caune on Server Fault See other posts from Server Fault or by Peteris Caune
Published on 2010-11-03T09:47:47Z Indexed on 2012/04/16 5:33 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

An Ubuntu 9.04 box running Apache on 8080 and Varnish on 80.

Recently set up Munin and was wondering why Apache graphs are empty. Saw from the logs that Munin is accessing /server-status?auto and getting 403 Forbidden back. So I edited /etc/apache2/monds-enabled/status.conf to allow access from 127.0.0.1. But doing this actually made /server-status public, since requests coming through Varnish appear to come from 127.0.0.1 too.

So the question is, how do I configure mod_status to be accessible only by munin-node and not by Varnish?

© Server Fault or respective owner

Related posts about apache2

Related posts about varnish