Enable the Apache server status module
To use the Apache status module,
SSH into your server as root and create the file:
/etc/apache-sp/conf.d/mod_status.confwith the contents:
<IfModule !status_module> LoadModule status_module lib/sp-apache/mod_status.so</IfModule>and then restart Apache.
sudo service apache-sp restartNext, create an app on the server
and add the following to the app’s .htaccess file:
<Files apache-status> SetHandler server-status
# Uncomment to only allow status page requests from within the server. # Require ip 127.0.0.1</Files>You can then request the status page at the path /apache-status
using any of the app’s domain names as the hostname of the request.
Add ?auto to the request URL for an output format that is easier
for scripts to parse.
See the mod_status documentation for more information.