I have my own server instance which is centos 5.7 and have installed apache some time ago. Now I noticed that my log files are rotating. I couldn't remember if I had set up something or not since there is nothing on cron, and the error logging on apache isn't piped.
Here's how error logging defined on one of the virtual hosts:
But when I go to the logs dir, I see the log files rotated in this manner:
/etc/httpd/logs/domain.com/access_log /etc/httpd/logs/domain.com/access_log.1.gz /etc/httpd/logs/domain.com/access_log.2.gz /etc/httpd/logs/domain.com/access_log.3.gz /etc/httpd/logs/domain.com/access_log.4.gz
I also noted that all the virtual hosts had the same number of rotated logs (4), and creates one every 7 days, and that the #4 log is always 3 weeks in the past. Also, these log files rotate in this manner no matter how big or small the log file is.
So my question is, do you have any idea what kind of rotator this is? I just want to put it back to writing to a lone
access_log file. Thanks.