Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 28825 invoked from network); 23 Feb 2006 19:08:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Feb 2006 19:08:34 -0000 Received: (qmail 53995 invoked by uid 500); 23 Feb 2006 19:08:23 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 53922 invoked by uid 500); 23 Feb 2006 19:08:23 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 53896 invoked by uid 99); 23 Feb 2006 19:08:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 11:08:22 -0800 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 bkbonner@gmail.com designates 64.233.182.204 as permitted sender) Received: from [64.233.182.204] (HELO nproxy.gmail.com) (64.233.182.204) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 11:08:22 -0800 Received: by nproxy.gmail.com with SMTP id l23so115501nfc for ; Thu, 23 Feb 2006 11:08:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cbrL+yFKC310FwWnincgfXciS3BIqRWisUtIKghSwd23I7k1YXZ9hzAGqIUHeRgSQN8aPl71vw1s1eRu276YY1B23QlI44n7ssXR9Sche4aiOmgdtV0/GYqaYE4ihuItx8Zl7lLQjI+mW2HvNgURYaImhwCINaBbvuTOeFhHGIo= Received: by 10.49.68.13 with SMTP id v13mr2455298nfk; Thu, 23 Feb 2006 11:08:00 -0800 (PST) Received: by 10.48.242.8 with HTTP; Thu, 23 Feb 2006 11:08:00 -0800 (PST) Message-ID: Date: Thu, 23 Feb 2006 14:08:00 -0500 From: "Brian Bonner" Reply-To: bkbonner@gmail.com To: dev@httpd.apache.org Subject: Proxy Cookie Path Question (answer to my 408 error when Proxying Tomcat) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, We ran across a problem with an Apache 2.0.51-2.9 installation. We are using the reverse proxy configuration to proxy a Tomcat 5.0.28 system. When proxying a site with a change in the path we run into a problem where the cookies path is not changed to reflect the request on Tomcat apps. When we run PHP applications (i.e. SugarCRM) with Apache on the back-end server, we have no problem. Cookies that have a non "/" path are properly corrected. I see that Apache 2.2.x has ProxyPassReverseCookiePath. What's frustrating to me is that the folks over at Tomcat are saying that this is a Apache issue when I'm seeing that a PHP based app has no problem at all. Can someone with experience in this area shed some light on this issue for me? I'm really trying to figure out what an app server *should* do, or is this not specified anywhere. Brian FWIW, I was originally receiving a 408 error msg indicating that the session was timing out. It turned out that this was a result of Tomcat not receiving the cookie, because the browser never saw it with the correct path. There are workarounds: 1. use ProxyPassReverseCookiePath (I'm downloading 2.2.x now) 2. upgrade to Tomcat 5.5 and change the connector to set all of the cookie paths' to "/" 3. modify the Tomcat 5.0.28 cookie handling code.