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 versions of the functional module to view the Apache Server-status, so it is convenient to view some of Apache's corresponding state information.
First, open Apache Server Status
If your Apache profile httpd.conf or extra/httpd-info.conf has loadmodule status_module modules/mod_ status.so says your Apache has loaded this module, or when you compile it with –enable-module=so It also indicates that the server supports Server-status.
If Apache does not load this module, if it is a Linux server, you will have to recompile Apache, plus –enable-module=so parameters; If you are a Windows system, you do not need any compilation, just say the LoadModule Status_module modules/mod_status.so This sentence plus, if the front with a #, open, you need to remove the #.
This column more highlights: http://www.bianceng.cn/Servers/web/
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, and can be added without
Browser Access http://192.168.7.196/server-status?refresh=5
As shown in figure:
This article comes from "All the Way North" blog, please be sure to keep this source http://showerlee.blog.51cto.com/2047005/1201763