#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost ip6-localhost
# Allow from .example.com
我们需要做以下修改,Order(顺序)为允许优先,允许来自各处的访问请求。
# 启用详细监控数据
ExtendedStatus On
SetHandler server-status
Order allow,deny
Deny from nothing
Allow from all
然后重启 apache
sudo /etc/init.d/apache2 restart
之后,我们通过 http://servername/server-status 就可以看到apache运行时的信息。