- 对Apache服务器中的httpd.conf进行如下配置(/etc/httpd/conf/httpd.conf)
修改Apache中Httpd.conf文件,添加如下代码(该文件中都有,只要取消注释就好了,在文件中903行处)
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost 192.168.0.53
</Location>
- 这里的"Allow from localhost"是指只有apache所在的本机和192.168.0.53才能取到值
- 设置ExtendedStatus On (只需要取消代码中的注释就行了,在大约在httpd.conf文件218行处)
- 取消注释LoadModule status_module modules/mod_status.so(大约在httpd.conf文件176行处)来加载该模块。
- 配置完成后,重新启动Apache
- 输入http://apache ip address/server-status?auto或者http://apache ip address/server-status即可获取Apache的status信息
- 在C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-info.conf文件中取消如下注释 <Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost 192.168.0.53
</Location>
- 这里的"Allow from localhost"是指只有apache所在的本机和192.168.0.53才能取到值
- 在C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-info.conf文件中取消 ExtendedStatus On的注释
- 在C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf文件中取消 对LoadModule status_module modules/mod_status.so的注释
- 在C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf文件中取消 对Include conf/extra/httpd-info.conf的注释
- 对以上修改做保存之后重启Apache
- 输入http://apache ip address/server-status?auto或者http://apache ip address/server-status即可获取Apache的status信息
- 转http://www-2w.blog.163.com/blog/static/9793151820103223268171/
mod_status,布布扣,bubuko.com
mod_status
原文:http://www.cnblogs.com/liubingna/p/3818386.html