Re: [users@httpd] How add / foward in header the remote_addr with proxy mode ?!

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

 



On Fri, 11 Mar 2005 12:10:12 +0100, david micheneau
<dmicheneau@xxxxxxxxxxxx> wrote:
> I know that is possible to make own header HTTP.
> I want to add in header HTTP, that I forward, my own header variable set
> with the value of the environment variable REMOTE_ADDR.
> 
> It's possible ??
> 
> I've tried this:
> 
> RequestHeader add MyHeader-ip %{REMOTE_ADDR}e
> 
> I see in the header HTTP forwarded my header name but the value is null:
> 
> GET / HTTP/1.1
> Max-forwards: 10
> MyHeader-ip: (null)

I believe that this capability is available only in the 2.1 version, not in 2.0.

But doesn't the proxy already add a similar header?  I think it is
called X-Forwarded-For.

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