Add this to the "Logging Directives" part of your httpd.conf:
#
# (RWM) These are here to block Nimda/CodeRed hits from being logged.
#
SetEnvIfNoCase Request_URI "^/scripts/" nolog
SetEnvIfNoCase Request_URI "^/msadc/" nolog
SetEnvIfNoCase Request_URI "^/_vti_bin/" nolog
SetEnvIfNoCase Request_URI "^/_mem_bin/" nolog
SetEnvIfNoCase Request_URI "^/c/winnt/" nolog
SetEnvIfNoCase Request_URI "^/d/winnt/" nolog
SetEnvIfNoCase Request_URI "^/default.ida" nolog
Redirect gone /scripts/
Redirect gone /msadc/
Redirect gone /_vti_bin/
Redirect gone /_mem_bin/
Redirect gone /c/winnt/
Redirect gone /d/winnt/
Redirect gone /default.ida

The Redirects will filter the error_logs. The SetEnv ones set an environment variable "nolog" when it matches. So now, in your virtual hosts, you have to replace:

TransferLog /home/httpd/www.linuxsecurity.com-80/logs/access_log
with: # TransferLog /home/httpd/www.linuxsecurity.com-80/logs/access_log
CustomLog /home/httpd/www.linuxsecurity.com-80/logs/access_log combined env=!nolog
This says "don't log anything with the nolog environment variable set."

vfdkv zoonar