Re: [users@httpd] Not Logging Proxy Requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/17/05, Tim Traver <tt-list@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux