直接在extra/httpd-info.conf 增加以下内容
<Location /server-status> SetHandler server-status Order deny,allow #Deny from all Allow from all </Location> ExtendedStatus On <IFModule mod_info.c> <Location /server-info> SetHandler server-info Order deny,allow #Deny from all Allow from all </Location> </IFModule>
同是要确认httpd-info.conf 被引入否则修改下httpd.conf
include conf/extra/httpd-info.conf
完成以上,就重启httpd
本文转自http://blog.sina.com.cn/s/blog_6cfb18070100q1o2.html
时间: 2024-10-10 14:21:38