Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/mdaeo.org/usr/plugins/AMP/Action.php on line 388
开启Apache的mod_status模块(Server Status)

开启Apache的mod_status模块(Server Status)

2011-06-01T21:34:02

 从httpd.conf中可以搜索到这一行

LoadModule status_module modules/mod_status.so

如果apache不支持mod_status模块,需要重新编译apache.

下面我们打开Apache的mod_status模块,直接在httpd.conf文件中最后一行添加下面几行即可.

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
#Deny from all   禁止访问的ip   
Allow from all   允许所有的IP访问
#Allow from 125.76.229.215   允许125.76.229.215访问
#Allow from 60.195.252.106
</Location>

这样监控宝就可以读取类似http://www.yyphs.com/server-status这样的URL来获取apache运行状态了

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »
因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合MIP标准。