Loading... <p> 从httpd.conf中可以搜索到这一行</p><p>LoadModule status_module modules/mod_status.so</p><p>如果apache不支持mod_status模块,需要重新编译apache.</p><p>下面我们打开Apache的mod_status模块,直接在httpd.conf文件中最后一行添加下面几行即可.</p><blockquote><p><code>ExtendedStatus On<br /><Location /server-status><br />SetHandler server-status<br />Order deny,allow<br />#Deny from all 禁止访问的ip <br />Allow from all 允许所有的IP访问<br />#Allow from 125.76.229.215 允许125.76.229.215访问<br />#Allow from 60.195.252.106<br /></Location></code></p></blockquote><p>这样监控宝就可以读取类似http://www.<font color="#000000">yyphs</font>.com/server-status这样的URL来获取apache运行状态了</p> <hr class="content-copyright" style="margin-top:50px" /><blockquote class="content-copyright" style="font-style:normal"><p class="content-copyright">版权属于:大漠孤狼</p><p class="content-copyright">本文链接:<a class="content-copyright" href="https://www.dmgls.com/401.html">https://www.dmgls.com/401.html</a></p><p class="content-copyright">转载时须注明出处及本声明</p></blockquote> Last modification:July 14th, 2020 at 11:53 am © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 Appreciate the author