标签:
在 vim /usr/local/apache2/conf/extra/httpd-vhosts.conf中添加这句
ErrorLog "/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/aaa-error_%Y%m%d.log 86400"
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/aaa-access_%Y%m%d.log 86400" combined
注意:这是两行
然后查看 :
grep LogFormat /usr/local/apache2/conf/httpd.conf
标签:
原文地址:http://www.cnblogs.com/FlameLuo/p/5576102.html