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
這個模塊沒有加載