#不记录指定文件类型日志
SetEnvIf Request_URI ".*\.gif$"image-request
SetEnvIf Request_URI ".*\.jpg$"image-request
SetEnvIf Request_URI ".*\.png$"image-request
SetEnvIf Request_URI ".*\.bmp$"image-request
SetEnvIf Request_URI ".*\.swf$"image-request
SetEnvIf Request_URI ".*\.js$"image-request
SetEnvIf Request_URI ".*\.css$"image-request
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/oem.discuz.qq.com-access_%Y%m%d.log 86400" combined env=!image-request
本文转自 linuxpp 51CTO博客,原文链接:http://blog.51cto.com/1439337369/1706686,如需转载请自行联系原作者