Skip to content


设置apache 日志不记录图片

<FilesMatch “\.(gif|jpg|jpeg|png|css|swf)”>
 SetEnv NoLOG 1
</FilesMatch>

CustomLog logs/www.c1gstudio.com-access_log common env=!NoLOG

对于找不到图片的还是会记录在log中的

Posted in Apache, linux 维护优化, 技术.

Tagged with , , .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.