Hi, Haroon

I see that also but I don't know how to use them. I put the statement into my 
vhost of Apache reverse proxy and the apache complaining they are wrong 
statement, etc.


<virtualhost>

...
Proxyrequst off
.....
X-Forwarded-For
....
</virtualhost>

Is above the correct way to use it? I am not much care about the remote IP 
being logged in the Apache log but I am care about the remote client IP being 
forwarded to the backend server since our backend server will decide what to do 
based on the remote client IP. Thanks.

Ryan


-----Original Message-----
From: Haroon Rafique [mailto:haroon.rafi...@utoronto.ca] 
Sent: Monday, November 30, 2009 7:54 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Passing remote client IP address to backend server 
and session stickness

On Today at 4:37pm, RJ=>Ruiyuan Jiang <ruiyuan_ji...@liz.com> 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.rafi...@utoronto.ca>


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




This message (including any attachments) is intended
solely for the specific individual(s) or entity(ies) named
above, and may contain legally privileged and
confidential information. If you are not the intended 
recipient, please notify the sender immediately by 
replying to this message and then delete it.
Any disclosure, copying, or distribution of this message,
or the taking of any action based on it, by other than the
intended recipient, is strictly prohibited.


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to