httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] SetEnvIf question
Date Mon, 15 Dec 2003 20:20:31 GMT

On Mon, 15 Dec 2003, Sean Correia wrote:

> I use Htdig as a search on my site, and am trying to get Apache
> (1.3.something) to ignore the requests.
>
> Here is a request from my access_file:
> 12.38.109.23 - - [14/Dec/2003:04:02:14 -0500] "GET /products/item_new.phtml?part_number=0002657
HTTP/1.0" 200 27897 "http://www.eaw.com/products/MK/" "htdig/3.1.6 (webmaster@eaw.com)"
>
>
> And in my httpd.conf file I am trying this:
> <IfModule mod_setenvif.c>
>   SetEnvIf Remote_Addr "12\.38\.109\.23" dontlog
> </IfModule>
>
> And it doesn't work. Pointers?

1. Remove the <IfModule ...> and </IfModule> lines.  They serve no
purpose other than to hide useful error messages.

2. "dontlog" is not some magic variable.  That SetEnvIf needs to be
combined with an appropriate CustomLog directive that acts on the dontlog
variable to ignore requests.

See:
http://httpd.apache.org/docs/logs.html#conditional
http://httpd.apache.org/docs/mod/mod_log_config.html#customlog

Joshua.

---------------------------------------------------------------------
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