Apache Log Maintenance

Useful for those managing apache sites.  This will set the rotating logs so that it is easier to review issues and problems when they occur.  This is also much needed so that one log file does not get to large and unmanageable.

On Linux:

CustomLog “|bin/rotatelogs /var/logs/logfile 86400” common

On Windows:

CustomLog “|D:/viewstore/snapshot/ralberts/apache/bin/rotatelogs.exe D:/viewstore/snapshot/ralberts/apache/logs/access.%Y-%m-%d-%H_%M_%S.log 60” common

This information can also be found at apaches website.