On Debian systems … Apache comes with mod_status compiled by default.
mod_status provides information on the Apache server activity and performance.
This tutorial will show you how to enable this feature, so that only requested issued from localhost are accepted and served.
Setting mod_status up:
By default, server status report is commented so you can not access it. To enable it, you need to uncomment from /etc/apache2/apache2.conf:
<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from .your_domain.com </Location>
We want the server status to be provided only to people connected directly from the host running the apache server.
Therefore we are going to deny access to /server-status to everybody except for people connecting from localhost, in the end the setting will look like:
<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
NOTE: You could be using localhost instead of 127.0.0.1, or your ip if you’re not connected directly to server.
Now you need to restart your apache server using the following command:
Accessing Apache Status: