Home > Apache > Enable Apache Log Rotate

CustomLog "|/usr/sbin/rotatelogs -l /var/log/httpd/access.log.%Y%m%d 604800" combined
ErrorLog "|/usr/sbin/rotatelogs -l /var/log/httpd/error.log.%Y%m%d 604800"

Reference:
https://www.phpini.com/apache/apache-log-rotate



Flag Counter