For apache 1.3, edit your /etc/httpd/conf/httpd.conf and add
ExtendedStatus On <Location /httpd-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
just after the code that says “ServerSignature On”. Save, exit, then restart apache. You can access the stats page by going to http://188.8.131.52/httpd-status where 184.108.40.206 is your server’s IP.
If you’re running apache 2.x , then it’s already in the file:
Change the “Allow from” lines to include your IP.
Under cPanel servers the code is already present but you need to uncomment it or just add the code :
<Location /whm-server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>