Configure Status URL for Apache Monitoring

Configuring status URL for Apache Monitoring

  1. Edit the status module's configuration file:
    /etc/apache2/mods-enabled/status.load
  2. Find the below line and make sure it is uncommented:
    LoadModule status_module /usr/lib/apache2/modules/mod_status.so
  3. Edit the status module configuration file:
    /etc/apache2/mods-enabled/status.conf
  4. The below line allows access to the Status page from localhost using the URI /server-status
    <Location /server-status>
    SetHandler server-status
    Require local
    </Location>
  5. To restrict access to authenticated users and to specific IP addresses:
    <Location /server-status>
    SetHandler server-status
    AuthUserFile /passwordlocation
    AuthType Basic
    AuthName <USER_NAME>
    Require user <USER_NAME>
    </Location>
  6. Make sure the ExtendedStatus is enabled to track additional data about the currently executing requests per worker.
    ExtendedStatus On
  7. Restart the server.