Apache:
SetEnvIfNoCase Request_URI "\.(gif|jpe?g|png|htc|css|js|ico)$" skiplog
CustomLog "/var/log/httpd/access.log" combined env=!skiplog
Lighttpd:
$HTTP["url"] =~ "\.(gif|jpe?g|png|htc|css|js|ico)$" {
accesslog.filename = "/dev/null"
}
disable logging of images in access log
Submitted by sandip on Wed, 12/15/2010 - 17:15
Apache: SetEnvIfNoCase Request_URI "\.(gif|jpe?g|png|htc|css|js|ico)$" skiplog Lighttpd: $HTTP["url"] =~ "\.(gif|jpe?g|png|htc|css|js|ico)$" { »
|
See AlsoUser loginRecent blog posts
Who's onlineThere are currently 0 users and 16 guests online.
|
disable logging in nginx
For nginx servers:
access_log off;