httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Not Logging Proxy Requests
Date Sat, 18 Jun 2005 00:45:40 GMT
On 6/17/05, Tim Traver <tt-list@simplenet.com> wrote:

 
> Joshua,
> 
> actually, PROXY_ADDR is an environment variable that is created by
> mod_extract_forwarded...

It is possible that this module is setting the variable too late in
request processing for mod_setenif to get at it.

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

Read the docs for SetEnvIf.  You'll see that you don't need the HTTP-
prefix for headers.  It is just X-Forwarded-For, exactly as sent by
the client.

> 
> If what you said is true (that the headers have dashes instead of
> underscores, then how is it that SetEnvIf works using Remote_Addr ???

Because that isn't a request header, it is a variable created
specially by mod_setenvif.

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