Forum Moderators: phranque
For linux the easiest way would be to use the logrotate app. This will rotate, compressing etc.
Another option would be to use a cron job to run at midnight. This would rename the file to the date and touch a new file. Will probably need to stop / start apache whilst this is happening.
<VirtualHost *:80>
CustomLog "¦/usr/sbin/rotatelogs /var/log/apache2/access_log.%y%m%d 86400" vcommon
</VirtualHost> meaning I get a new log file every day, named access_log.YYMMDD