How can you have a page which would show you apache status?

You can also  check and monitor Apache server’s current status on the web page without using

log files. Modify httpd.conf file and add the following code into it:

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Deny from all
Order deny,allow
Allow from localhost 192.168.1.5
Allow from .anotherdomain.com
</Location>

Restart apache service:

/etc/init.d/apache2 restart

You will see following parameters in the browser window:-

current date and time CPU usage, total uptime, total access made to web server and total traffic. In the same browser page you could able to see PID, scoreboard which tells you about closing connections, logging connections, client’s IP address,load status, VHost name and the request made for particular pages link.

Now you need to enter following URL in the browser from valid IP address mentioned in the above

code i.e. 192.168.1.5 or from localhost or from browser from anotherdomain.com:

http://your-apache-configured-web-se…/server-status

This will give you all the details having apache sever status in the browser window.

If you don’t want to specify domain name in the above code then you can make a comment in front

of it by doing:

# Allow from .anotherdomain.com

You can also use following command to get the apache server status automatically after few seconds:

http://your-apache-configured-web-se…atus?refresh=N

where N is a number of seconds to refresh the status web page.

  • 60 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...