Apache Status

Apache Status 

Apache mod_status displays information related to incoming server connections by generating a detailed status page.

First LoadModule status_module

location ~: /usr/lib/apache2/modules/mod_status.so

View an example of this page at Apache’s own website.

Open your website’s configuration file. This file is located at

/etc/apache2/sites-available/example.com.conf on Debian/Ubuntu systems

/etc/httpd/conf.d/vhost.conf on CentOS/Fedora systems.

Add the following to the <virtual_hosts> block

<IfModule mod_status.c>
      # Allow server status reports generated by mod_status,
      # with the URL of http://servername/server-status
      # Uncomment and change the “.example.com” to allow
      # access from other hosts.
     <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost ip6-localhost
      #    Allow from .example.com



will give status of apache web-server.

Apache mod_status also offers an option called ExtendedStatus, which provides additional information about each request made to Apache. To enable ExtendedStatus edit your Apache configuration file:

/etc/apache2/apache2.conf (Debian/Ubuntu)

/etc/httpd/confd/httpd.conf (CentOS/Fedora)

ExtendedStatus On

Enabling ExtendedStatus consumes additional system resources

Restart Apache

  • Debian/Ubuntu:

service apache2 restart
  • CentOS/Fedora:
/bin/systemctl reload httpd.service