Home / Web Hosting / Monitor Apache web server with mod_status

Monitor Apache web server with mod_status

Apache Software Foundation LogoProblem: Apache HTTP Server on a web hosting system will undoubtedly run multiple virtual hosts. Each of those virtual hosts logs its activity in a separate location making it impossible to effectively monitor each log and each virtual host for errors or security issues.

Solution: Use mod_status to monitor Apache’s activities. This module for Apache allows the system administrator to have real-time viewing of all of the web server’s activity. It is part of the default Apache 2 package on many Linux systems, and you can enable it by doing the following:

1. Make sure you have mod_info module loaded:

a2nmod info

2. Uncomment this section of your httpd.conf:


SetHandler server-status
Order deny,allow
Deny from all
Allow from .your_domain.com

3. Add the following above that section:

ExtendedStatus On

4. Restart Apache:

/etc/init.d/httpd force-reload

5. To view the server status, visit http://domainorip/server-status

Source: Debian Administration

Check Also

servers

Importance of web hosting to business

The world of business is very ruthless and unfair in some cases. It is a …

Powered by Namesco
© Copyright InternetBlog.Org.Uk 2024, All Rights Reserved