Append the following fragment (adjust as needed) to the vhost file that should be monitored:
<Location /server-status>
SetHandler server-status
Order allow,deny
Deny from all
Allow from all
</Location>
Enable extended status
Enabling the extended status will add more information to the statistics page like CPU usage, requests per second, total traffic and so on
Edit the httpd.conf file and make sure the following line looks as follows:
ExtendedStatus On
Access the status page
The status page can be accessed like so:
http://myhost/server-status
Status page via shell
Instead of accessing the status page via web browser the command line browser lynx may be used alternatively, for instance to track the status via script and store it in a file