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://22.214.171.124/httpd-status where 126.96.36.199 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>