
根据手册的指引,我在httpd.conf中做了如下配置:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .ci.com
</Location>
但是在页面上访问时,报403拒绝访问错误:
各种尝试之后,找到一个简洁的解决办法,重新调整配置如下:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
</Location>
再次访问http://dev.ci.com/server-status,页面正常:
PS:如果做了上述改动之后还是无法正常访问页面,有可能是你没有启用apache中的status_module模块。