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

這個模塊沒有加載

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