扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
apache 查看 server status错误
最近新安装的apache最新版本2.2.14.
下面是httpd-info.conf 部分:
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .xxxxx.com
</Location>
不过,但我通过xxx.xxxxx.com/server-status 访问时候,报了403. 改成Allow form all.可以正常访问。不过我觉得这样就没有了意义. 而且 server-info 也是这个问题.
http://lamp.linux.gov.cn/Apache/ApacheMenu/mod/mod_authz_host.html#allow
最后一节的方法,把example.org替换成你允许的虚拟主机名
SetEnvIf Host ^example.org$ let_me_in
<Location /server-status>
Order Deny,Allow
Deny from all
Allow from env=let_me_in
</Location>
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。