How to monitor Apache VirtualHost activity

apache-2.2monitoringvirtualhost

I have a webserver that runs a number of virtualhost websites.

Every once in a while there will be a situation where the server load goes really high, or the network response is very slow on the webserver, and I would like to have a way of viewing the current activity on my varions virtualhosts, to see if a particular domain is perhaps responsible (ie. DOS, etc.)

What tools exist that can show me this information?

(note, I have about 10 IP addresses on the webserver, but all of them are shared between many domains/virtualhosts)

Best Answer

mod_status is great for this, if you turn on ExtendedStatus it shows you the list of URLs currently being serviced. Turn ExtendedStatus off when you don't need it, though, as it does cause a (slightly noticeable, in extreme cases) reduction in performance.