对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行处)
在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才能取到值