httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Traver <>
Subject Re: [users@httpd] Not Logging Proxy Requests
Date Fri, 17 Jun 2005 23:47:49 GMT

Just verified that these are the RAW headers that the server is seeing :

This is from a ktrace session on the server (with x's to preserve 

 64160 httpd    GIO   fd 4 read 558 bytes
       "GET /info.php HTTP/1.0\r
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r
        Accept-Encoding: gzip,deflate\r
        Accept-Language: en-us,en;q=0.5\r
        Cache-Control: no-cache\r
        Pragma: no-cache\r
        User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 
rv:1.7.8) Gecko/20050511 Firef\
        Via: 0.0\r
        Connection: close\r

As you can see, the "X-Forwarded-For" header is sent.

In my SetEnvIf statement, I cant seem to set another environment 
variable that will allow me to not log it, cause for some reason it 
doesn't appear to see that header variable.


> Joshua,
> actually, PROXY_ADDR is an environment variable that is created by 
> mod_extract_forwarded...
> But, HTTP_X_FORWARDED_FOR is a header that is sent with the request 
> from the proxy machine to the destination. I have also tried to use 
> this variable, but to no avail...
> On your recommendation I tried HTTP-X-FORWARDED-FOR, but that doesn't 
> work either.
> If what you said is true (that the headers have dashes instead of 
> underscores, then how is it that SetEnvIf works using Remote_Addr ???
> Ultimately, the question becomes, how do I not log a proxy request ?
> Thanks,
> Tim.
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:> for more info.
>>To unsubscribe, e-mail:
>>   "   from the digest:
>>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message