Main menu

Using mod status for Apache in Linux Server

Apache mod_status is a way to gain granular information about your Apache server. It allow us to view or profiling the Apache for optimization or load testing.

Before begin you can check what it’s look like at Apache’s own website…

http://www.apache.org/server-status Or in a extended way

http://www.apache.org/server-status/?auto

Before begin verify that mod_status is installed and loaded into your Apache web server..

By default mod_status is installed with standard Apache installed but it not accessible by default. To see if it’s installed please check

httpd -M | grep status
 status_module (shared)

or open your httpd config file and search for

vi /etc/httpd/conf/httpd.conf
 LoadModule status_module modules/mod_status.so

So mod_status is installed now let’s enable server status link in your apache web server

open your apache configuraiton file and search for it.If it’s not avaible append the configuraiton at the end of file.

 

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
Allow from 183.182.86.202
</Location>

Allow extended information in your apache status

ExtendedStatus On

Not it’s done ! restart your apache web server to apply the configuraiton

service httpd restart

or

systemctl restart httpd

 

FacebookTwitterGoogle+RSS