httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Lerrahn <li...@penpal4u.net>
Subject Re: [users@httpd] Not logging certain requests
Date Sat, 27 Sep 2008 16:39:15 GMT
On Thu, 25 Sep 2008 20:54:10 +0200
Davide Bianchi <davide@onlyforfun.net> wrote:

> Christian Lerrahn wrote:
> > is there a way to configure Apache as to not log requests from
> > certain IP addresses?
> 
> Yes, conditional logging is what you're looking for.
> 
> SetEnvIf Remote_Addr "the\.ip\.address\.here" dontlog
> ...
> CustomLog /where/you/want/your/log combined env=!dontlog

Thanks. That works like a charm. :)

Cheers,
Christian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message