Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 312009

How to hide images request in my Apache's log?


Open the Apache config, e.g. vi httpd.conf

Add the following lines around the log configurations, e.g.

SetEnvIfNoCase Request_URI "\.gif$|\.png$|\.jpg$" DONT_LOG
CustomLog access.log common env=!DONT_LOG

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>