Re: Passing remote client IP address to backend server and session stickness

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

 



On Today at 4:37pm, RJ=>Ruiyuan Jiang <Ruiyuan_Jiang@xxxxxxx> wrote:

RJ> Hi, all
RJ> 
RJ> Question 1: Is there a way to pass Internet users' IP address to 
RJ> backend server through Apache reverse proxy server? I am testing that 
RJ> feature so far no luck. My backend server gets Apache proxy server's 
RJ> IP address. But I'd like to have Internet users' IP being passed 
RJ> through Apache. This is http request.
RJ> 

Hi Ruiyan,

See:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers
you are interested in the X-Forwarde-For header.
Once you get it to your backend server, then you will need to figure out 
how to get the information from that header into your logs (or whereever 
else). You may need to take extra care as multiple proxies can be in the 
path, so only trust this information if coming straight from your own 
reverse proxy.

RJ> 
RJ> [..snip..]
RJ> 

Later,
--
Haroon Rafique
<haroon.rafique@xxxxxxxxxxx>


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