On Wed, 19 Sep 2001, Lyle Brooks wrote:

> One motivation I have is for these virus attacks, I'd like to send out
> a 403 - Forbidden right at the beginning (say, when someone asks for
> default.ida) and then I'd like to have the option of not logging it to
> keep it from growing my logs and distorting my log reports.
> 
> Is there anyway to selectively tell a request not to even log this?
> Disable the log handler for the current request, maybe?

Try something like this in your httpd.conf:

SetEnvIf Request_URI "/default.ida" dontlog
LogFormat "%h %V %u %{%D %T}t %>s %m %U%q" common
CustomLog /home/nick/logs/httpd_log common env=!dontlog

- nick

Reply via email to