Skip to content

Instantly share code, notes, and snippets.

@devops-school
Created November 24, 2020 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devops-school/bdad209854f99dcae38d0ea4b661449f to your computer and use it in GitHub Desktop.
Save devops-school/bdad209854f99dcae38d0ea4b661449f to your computer and use it in GitHub Desktop.
Enable mod_status to Monitor Apache Web Server Load and Page Statistics

$ sudo vi /etc/httpd/conf/httpd.conf

DocumentRoot "/var/www/html"
LoadModule status_module modules/mod_status.so
<Location /server-status>
   SetHandler server-status
   Order deny,allow
   Deny from all
   Allow from all
   Allow from 172.31.0.16
</Location>
ExtendedStatus On

Verify Syntax changes in httpd.conf and Restart HTTPD services

$ httpd -t
$ sudo systemctl restart httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment