mod_log50x 1.0 review

Download
by rbytes.net on

mod_log50x Apache module logs error 500 - 509 to logfiles

License: The Apache License
File size: 0K
Developer: Andre Schild
0 stars award from rbytes.net

mod_log50x Apache module logs error 500 - 509 to logfiles. It enables you to log all error 50x status responses to logfiles.

How:

1. Either compile a apache module from the sources, or get a binary release.
2. Copy the module in the modules directory of your apache server.
3. Modify your httpd.conf to load the module:

LoadModule log50x_module modules/mod_log50x.so

4. Specify what errors should be logged in which logfile in your httpd.conf

Log50xFile /var/log/webserver50x.log
Log500File /var/log/webserver500.log
Log501File /var/log/webserver501.log
Log502File /var/log/webserver502.log
Log503File /var/log/webserver503.log
Log504File /var/log/webserver504.log
Log505File /var/log/webserver505.log
Log506File /var/log/webserver506.log
Log507File /var/log/webserver507.log
Log508File /var/log/webserver508.log
Log509File /var/log/webserver509.log

5. Restart your apache webserver


Details on the configuration options:

The Log50xFile specifies in which file all error in the range 500 - 509 should be logged.

The Log500File specifies in which file all error 500 should be logged.
The Log501File specifies in which file all error 501 should be logged.
etc.
The Log509File specifies in which file all error 509 should be logged.

It is possible to specify the same logfile multiple times, so this configuration results in all error 500 and 501 beeing logged in the same file.

Log500File /var/log/webserver500_501.log
Log501File /var/log/webserver500_501.log

When you specify the following configuration, then all error 500-509 are logged to the webserver50x logfile.

In addition to this, all error 500 are logged to the webserver500.log file.

Log50xFile /var/log/webserver50x.log
Log500File /var/log/webserver500.log

Requirements:
Apache 2.x

mod_log50x 1.0 keywords