Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 17294 invoked from network); 11 May 2006 18:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 18:24:16 -0000 Received: (qmail 7387 invoked by uid 500); 11 May 2006 18:24:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7367 invoked by uid 500); 11 May 2006 18:24:03 -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 7340 invoked by uid 99); 11 May 2006 18:24:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 11:24:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of brectanu@vt.edu designates 198.82.162.213 as permitted sender) Received: from [198.82.162.213] (HELO lennier.cc.vt.edu) (198.82.162.213) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 11:24:01 -0700 Received: from zidane.cc.vt.edu (IDENT:mirapoint@evil-zidane.cc.vt.edu [10.1.1.13]) by lennier.cc.vt.edu (8.12.11.20060308/8.12.11) with ESMTP id k4BINcfb009527 for ; Thu, 11 May 2006 14:23:38 -0400 Received: from [128.173.14.118] (quagaar.cc.vt.edu [128.173.14.118]) by zidane.cc.vt.edu (MOS 3.7.3a-GA) with ESMTP id FMG54005; Thu, 11 May 2006 14:23:39 -0400 (EDT) Message-ID: <4463812A.6020100@vt.edu> Date: Thu, 11 May 2006 14:23:38 -0400 From: Brian Rectanus Reply-To: Brian.Rectanus@vt.edu User-Agent: Mail/News 1.5 (X11/20060309) MIME-Version: 1.0 To: users@httpd.apache.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_proxy_balancer stickysession issues X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello all, I am having problems with mod_proxy_balancer and sticky sessions in 2.2.0 - 2.2.2. Here is what I have: NameVirtualHost *:80 Listen 80 ... BalancerMember http://server1:8000 route=server1 BalancerMember http://server2:8000 route=server2 ProxyPass / balancer://apps/ stickysession=MYCOOKIE nofailover=On This *should* balance all requests to either server1 or server2 and append a '.server[12]' to the MYCOOKIE value. Then, on the next request MYCOOKIE value would be something like '1234567.server1', and the route set to server1. Is this correct? However, the route is not being appended to the cookie value, so the sessions are not sticky. 1) Client requests main page 2) Server sends main page w/Set-Cookie MYCOOKIE=1234567 3) Client makes sub-requests w/Cookie MYCOOKIE=1234567 4) Server balances as if no sticky sessions (no route found) Should 2) above be: 2) Server sends main page w/MYCOOKIE=1234567.server1 as I expect? Also, some other concerns: 1) The separator between sessionid and route is not overridable a) '.' seems to be common in sessionids b) '.' is used by mod_usertrack and makes it incompatible Could something be added to store the route data in another field or be able to specify the field separator? Maybe routename=cookie:MYROUTE Or, perhaps proxy_balancer should be looking for the *last* '.' instead of the first one? 2) The documentation states you can use RewriteRule w/ [P], but ProxySet is not documented w/o browsing the code. a) ProxySet balancer://apps stickysession=foo nofailover=On works but, again, is not documented b) ProxySet stickysession=foo nofailover=On works within on 2.2.2, but only if after BalancerMember and is also not documented. 3) Seemingly no way to know where the response came from on the reverse proxy server. It would be nice to have an ENV var set or a header added to response with the value of the backend route or balancer name. Thanks, -B --------------------------------------------------------------------- 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