You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sean Correia <Se...@eaw.com> on 2003/12/15 21:12:51 UTC
[users@httpd] SetEnvIf question
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?
Cheers,
Sean
---------------------------------------------------------------------
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
Re: [users@httpd] SetEnvIf question
Posted by Joshua Slive <jo...@slive.ca>.
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