httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <>
Subject Re: [users@httpd] Passing remote client IP address to backend server and session stickness
Date Tue, 01 Dec 2009 02:14:01 GMT
I realize I just answered you, but in response to your explicit and
specific questions;

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

Only if this information has been shared with you by the upstream proxy
or router/gateway/forward proxy.  E.g. - what mod_remoteip is designed
to decode, ---when the information is presented---.

> Question 2: I am testing another Apache reverse proxy which proxies two backend https
servers. I am trying to use mod_proxy_balancer.
> <proxy balancer://mycluster>
> 	Balancermember keepalive=on
> 	Balancermember keepalive=on
> </proxy>
> Proxypass /test balancer:mycluster/
> When I test to access the site, I got login prompt from first server which I saw from
access log. I typed in login name and password. I got the login prompt back but from the log
I saw the connectivity was back from server 2. It seems to me like round robin connection
to backend server by Apache. I tried with keyword "JSESSION" but no luck. Does anyone know
how to configure Apache so the same connection always goes through the same backend https
(http) server. Thanks in advance.

Are you forgetting your ProxyPassReverse statements?  As of the current
version, the syntax above (but wtf happened to your // before mycluster???)
would work just fine for a ProxyPassReverse rule.

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

You have emailed a public list.  Your intended individuals are the world.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message