對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才能取到值