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
这个模块没有加载