apache 显示服务器状态

LoadModule   status_modulemodules/mod_status.so

<Location /status>

  SetHandler server-status

  Order Deny,Allow

  Allow from all

  #allow from 127.0.0.1

</Location>
 

要注意的是

模块加载时是status_module

设置handler时是server-status

而有的人配置出现 order allow deny 之类不认

如:

Invalid command 'Order', perhaps misspelled or defined by a module not included
in the server configuration

是因为

LoadModule authz_host_module modules/mod_authz_host.so

这个模块没有加载

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章