在httpd.conf中修改ErrorLog和CustomLog的配置
ErrorLog "|E:/apache2.2/bin/rotatelogs.exe E:/apache2.2/logs/error_%Y_%m_%d.log 86400 480"
CustomLog "|E:/apache2.2/bin/rotatelogs.exe E:/apache2.2/logs/access_%Y_%m_%d.log 86400 480" common
原文链接:https://www.f2er.com/apache/993602.html