On Today at 4:37pm, RJ=>Ruiyuan Jiang <[email protected]> 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
<[email protected]>


---------------------------------------------------------------------
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: [email protected]
   "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to