How can you have a page which would show you apache status?
You can also check and monitor Apache server’s current status on the web page without using
log files. Modify httpd.conf file and add the following code into it:
Deny from all
Allow from localhost 192.168.1.5
Allow from .anotherdomain.com
Restart apache service:
You will see following parameters in the browser window:-
current date and time CPU usage, total uptime, total access made to web server and total traffic. In the same browser page you could able to see PID, scoreboard which tells you about closing connections, logging connections, client’s IP address,load status, VHost name and the request made for particular pages link.
Now you need to enter following URL in the browser from valid IP address mentioned in the above
code i.e. 192.168.1.5 or from localhost or from browser from anotherdomain.com:
This will give you all the details having apache sever status in the browser window.
If you don’t want to specify domain name in the above code then you can make a comment in front
of it by doing:
# Allow from .anotherdomain.com
You can also use following command to get the apache server status automatically after few seconds:
where N is a number of seconds to refresh the status web page.