Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 041DAD281 for ; Mon, 24 Sep 2012 14:27:47 +0000 (UTC) Received: (qmail 61100 invoked by uid 500); 24 Sep 2012 14:27:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61067 invoked by uid 500); 24 Sep 2012 14:27:43 -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 61058 invoked by uid 99); 24 Sep 2012 14:27:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 14:27:43 +0000 X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLYTO_END_DIGIT,FSL_FREEMAIL_1,FSL_FREEMAIL_2,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.91.143] (HELO nm13-vm3.bullet.mail.ne1.yahoo.com) (98.138.91.143) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2012 14:27:36 +0000 Received: from [98.138.226.177] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 24 Sep 2012 14:27:15 -0000 Received: from [98.138.226.163] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 24 Sep 2012 14:27:15 -0000 Received: from [127.0.0.1] by omp1064.mail.ne1.yahoo.com with NNFMP; 24 Sep 2012 14:27:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 584049.33535.bm@omp1064.mail.ne1.yahoo.com Received: (qmail 15844 invoked by uid 60001); 24 Sep 2012 14:27:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1348496835; bh=6zhtgWBYntiU8BMcCFuMET1nWOmtrDrnKGiZp3DNXLo=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O9evgLBmR/dq67gSSU8AST5c/UgxOSeA8lygTIksHmIQ3VliZWZVSmCgV/+pLKfXQggZm87Yk+7KzTbF4v9gxuJZ2Lm4zC7got5AWXqmRF2GIsTtAkgdOdhdC5KL4zGoxHHXJekCVrXr+vKjcSgxd3lA7YZ2W0ObI8hsuNaRh2Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Ak3JrjlNQwAGU6X5/ipagePGetAxL2rGbARUvjEqQlwFkLJ5y7xje3VslEEAJOIsyppjbE3X+Whlkz6ZZaSwTCBPzF4umyR/r4fG8BMsqkKsrULQMKNZ3HonyryDZdwmeHwacMBOqkt+1eTn3pPdAkomfiDvJNuWWifENwOrNwQ=; X-YMail-OSG: MewXiYkVM1kr2.xE3zWgHvdycZlxczHsb4A5bjM7zGePcGD yh.wcIhbxmTdiCFFq_QbLH1SaVajz4_FahAPS2deu4Pb5c7NcNp_R4GbMmco lMeA0sHHyBFIBlK4i1OWVfVgM_U2CuJL2qxo9UtvWFbxpphnp8o1aDaVZm3G kZycPzmt1ggTqgKD5hMdeqEpd_Z4JKb1d0lRyPZd3ol1SU7X2ktkiZHEExKN W7vAvnkMvRNG9TY0K_gLa6ehxLLuoAiaULVbzocxXcCKvKIbKwvaTFDL71Cw 7D5DLA5qQaByOPe_gXwIb.b9cMPU5AagoY0j3RSNuPu.mTcLSIxt1mrKQ34i XuCUzXNgPgjnu2MPUQZR59c_bMa4l6syyPpnZFBhO0mzeQwMDK_x2MUbpCQT dxQ.2xIYwkjdCgG2PG0irXqguql1.dYJ0RexAnBihJMIPaxyE93aCxvMxAPA lEjtcgD3omSKwfRgRSe1U1AG9T2c.NQRInLm_ocomvyZ_E8HMWrUdI8gZW7s XVUFjPVUAQ_QLQ9dy_8KM9At2at_bBp2gujCZzObZxlGx1eYbgmy1JuP._pg qgaoo98_ZEpj8cWXTcZulxcSu1rot2fjxlo.wVQPRI32COOG8rQzbwMgZ1RN iSibSBHWGsT1YonJxpcqZQOKdoB0- Received: from [199.203.197.196] by web120506.mail.ne1.yahoo.com via HTTP; Mon, 24 Sep 2012 07:27:15 PDT X-Mailer: YahooMailWebService/0.8.121.434 References: <1347459290.58109.YahooMailNeo@web120502.mail.ne1.yahoo.com> <50510FA1.9000207@primary.net> Message-ID: <1348496835.75375.YahooMailNeo@web120506.mail.ne1.yahoo.com> Date: Mon, 24 Sep 2012 07:27:15 -0700 (PDT) From: sol myr Reply-To: sol myr To: "users@httpd.apache.org" In-Reply-To: <50510FA1.9000207@primary.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Customized Stickiness Thanks very much.=0AWould you happen to know if there's a way to control st= ickiness if my cookies don't include a ".route", I mean they can't be in th= e format "cookie.route"?=0A=0ABut your original reply is appreciated regard= less, thanks very much.=0A=0A=0A=0A----- Original Message -----=0AFrom: Dan= iel Ruggeri =0ATo: users@httpd.apache.org=0ACc: =0ASe= nt: Thursday, September 13, 2012 1:41 AM=0ASubject: Re: [users@httpd] Custo= mized Stickiness=0A=0AOn 9/12/2012 9:14 AM, sol myr wrote:=0A> Now we'd lik= e the load-balancer to make sure all requests from the same city - go to th= e same Tomcat.=0A> E.g:=0A> - All requests from NY (namely with cookie "cit= y=3DNY" go to the same Tomcat=0A> - All requests from Paris (namely with co= okie "city=3DParis" go to the same Tomcat=0A> - We don't mind which tomcat.= .. just never to find 2 new yorkers connected to different Tomcats.=0A=0AIf= you can control the cookie Tomcat sets and set it to be=0A"city=3D.city" you can set the balancer configuration like so:=0A=0ALoadModule h= eaders_module modules/mod_headers.so=0A=0A=A0 = BalancerMember http://1.2.3.4:8009 route=3DNY=0A=A0 BalancerMember http:/= /1.2.3.5:8009 route=3DParis=0A=A0 ProxySet stickysession=3Dcity=0A= =0A=0AThis way, when Tomcat sets the cookie called "city", httpd will parse= =0Athe cookie looking for the route (after the "." in the cookie value) and= =0Amatch it to the BalancerMember being used.=0A=0A-- =0ADaniel Ruggeri=0A= =0A=0A---------------------------------------------------------------------= =0ATo unsubscribe, e-mail: users-unsubscribe@httpd.apache.org=0AFor additio= nal commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org