Vim/usr/local/apache2/conf/extra/httpd-vhosts.conf
Errorlog "|/usr/local/apache/bin/rotatelogs-l/usr/local/apache/logs/oem.discuz.qq.com-error_%y%m%d.log 86400"
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/apache/bin/rotatelogs-l/usr/local/apache/logs/oem.discuz.qq.com-access_%y%m%d.log 86400" Combined Env=!image-request
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/85/69/wKioL1eixSPSzSIDAAD0LSct7rA817.png "title=" 41.png "alt=" Wkiol1eixspszsidaad0lsct7ra817.png "/>
/usr/local/apache2/bin/apachectl-t
/usr/local/apache2/bin/apachectl restart
This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1834275
LAMP_ Configuring access logs for Apache