Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 70589 invoked from network); 1 Dec 2009 15:24:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 15:24:35 -0000 Received: (qmail 52793 invoked by uid 500); 1 Dec 2009 15:24:31 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52771 invoked by uid 500); 1 Dec 2009 15:24:31 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 52762 invoked by uid 99); 1 Dec 2009 15:24:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 15:24:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Ruiyuan_Jiang@liz.com designates 156.146.1.180 as permitted sender) Received: from [156.146.1.180] (HELO mx1.liz-claiborne.com) (156.146.1.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 15:24:20 +0000 DomainKey-Signature: s=mail; d=liz.com; c=nofws; q=dns; h=Received:From:To:Date:Subject:Thread-Topic:Thread-Index: Message-ID:References:In-Reply-To:Accept-Language: Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: acceptlanguage:Content-Type:MIME-Version: Content-Transfer-Encoding; b=o/7x64lgGASPo/Fyp42/wpzA6/zKq65vNhXHHeJ5r+JWZRbCEQALtFVy UQdMb2fE7NlKDp+ZKvzpsMBXhlaZ4hjQ8jCAMwIC4Cz54LAOTsGOTtzJJ h+GiUPk8LtMvZc4; Received: from USANBREX01.ds.liz.com ([156.146.19.223]) by USANBRCASHUB02.ds.liz.com ([2002:9c92:13e0::9c92:13e0]) with mapi; Tue, 1 Dec 2009 10:23:59 -0500 From: Ruiyuan Jiang To: "users@httpd.apache.org" Date: Tue, 1 Dec 2009 10:23:59 -0500 Thread-Topic: [users@httpd] Passing remote client IP address to backend server and session stickness Thread-Index: AcpyLAYoIwdIJMM/SlqzqJlBKEDC5wAbPqpA Message-ID: References: <4B147BE9.7060009@rowe-clan.net> In-Reply-To: <4B147BE9.7060009@rowe-clan.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Passing remote client IP address to backend server and session stickness Hi, William For your answer to my question 1, current I use BlueCoat reverse proxy whic= h is passing internet remote client IP to the backend server. We'd like to = migrate the reverse proxy server to Apache server. The rest network setup h= as not been changed.=20 For your answer to my question2, it is my fault that I did not post all the= related statements. Here they are: BalancerMember https://backend1:443 keepalive=3Don BalancerMember https://backend2:443 keepalive=3Don ProxyPass / balancer://backend/ ProxyPassReverse / balancer://backend/ stickysession=3DJSESSI= ONID|jsessionid Like I said, the Apache does not stick the https session to one particular = server for the session. Ryan Jiang -----Original Message----- From: William A. Rowe Jr. [mailto:wrowe@rowe-clan.net]=20 Sent: Monday, November 30, 2009 9:14 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Passing remote client IP address to backend serv= er and session stickness I realize I just answered you, but in response to your explicit and specific questions; Ruiyuan Jiang wrote: >=20 > 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 fa= r 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 b= ackend https servers. I am trying to use mod_proxy_balancer. >=20 > > Balancermember https://192.168.1.1:443 keepalive=3Don > Balancermember https://192.168.1.2:443 keepalive=3Don > >=20 > Proxypass /test balancer:mycluster/ >=20 > When I test to access the site, I got login prompt from first server whic= h I saw from access log. I typed in login name and password. I got the logi= n 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 config= ure Apache so the same connection always goes through the same backend http= s (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=20 > recipient, please notify the sender immediately by=20 > 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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@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=20 recipient, please notify the sender immediately by=20 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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org