Apache logs are cumbersome to monitor Apache running status by analyzing logs or viewing server processes. However, in the Apache 1.3.2 and later version of a feature module to view the Apache status Server-status, so it is convenient to view some of Apache's corresponding status information.
One. Open Apache Server Status
If your Apache configuration file httpd.conf or extra/httpd-info.conf has loadmodule status_module modules/mod_ Status.so, stating that your Apache has already loaded the module, or that adding –enable-module=so when compiling it also indicates that the server supports Server-status.
If Apache does not load this module, if it is a Linux server, it will have to recompile Apache, plus the –enable-module=so parameter, if you are a Windows system, no need to compile, just the time to say that LoadModule Status_module modules/mod_status.so This sentence plus, if the front with a # number, open, you need to remove the #.
Two. Configure Apache Server Status
# vi/usr/local/apache2/conf/httpd.conf
Last line add:
------------
Extendedstatus on
<location/server-status>
SetHandler Server-status
Order Allow,deny
Allow from all
</location>
------------
Restart Service:
#/usr/local/apache2/bin/apachectl Restart
Three. Access Status page
Add it back here? refresh=5 indicates that the page is refreshed every 5 seconds without adding or
Browser Access http://192.168.7.196/server-status?refresh=5
This article is from the Linux commune website (www.linuxidc.com) Source Link: http://www.linuxidc.com/Linux/2013-05/84743.htm
Apache Server Status Detailed