Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 15863 invoked from network); 29 Feb 2008 16:47:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 16:47:34 -0000 Received: (qmail 11508 invoked by uid 500); 29 Feb 2008 16:47:20 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 11498 invoked by uid 500); 29 Feb 2008 16:47:20 -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 11487 invoked by uid 99); 29 Feb 2008 16:47:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 08:47:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.154.217.45] (HELO as-mr-01.ic.lu) (194.154.217.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 16:46:45 +0000 Received: from as-exch-01.ic-prd.lu ([10.64.0.195]) by as-mr-01.ic.lu with InterScan Message Security Suite; Fri, 29 Feb 2008 17:52:04 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Feb 2008 17:46:45 +0100 Message-ID: <0365EC615608084E9EF48D2F34DFED4502FDBF75@as-exch-01.ic-prd.lu> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Reverve proxy configuration & cookies ? Thread-Index: Ach68CMmXUg6lZAISb6bebOJIzbFbQAAeUqQ References: <0365EC615608084E9EF48D2F34DFED4502FDBF72@as-exch-01.ic-prd.lu> From: To: X-imss-version: 2.050 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:5.0.1023(15760.000) X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Reverve proxy configuration & cookies ? Thanks a lot! It sounds effectively to be the solution. Regards. -----Original Message----- From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive Sent: vendredi 29 f=E9vrier 2008 17:28 To: users@httpd.apache.org Subject: Re: [users@httpd] Reverve proxy configuration & cookies ? On Fri, Feb 29, 2008 at 11:23 AM, wrote: > Hello, > > I'm completely new to apache reverse proxy configuration, and I've=20 > got a problem to use HttpSession throught my client/server=20 > application Client application : Java/swing application with the=20 > jakarta librarie HttpClient to communicate with the server Server=20 > application : HttpServlet runing under tomcat-5.5.25 at context =20 > '/mycontext/backOffice' > Apache reverse proxy configuration : > > ProxyRequests Off > ProxyPass /backOffice > http://my-tomcat:8080/mycontext/backOffice > ProxyPassReverse /backOffice =20 > http://my-tomcat:8080/mycontext/backOffice > ProxyPreserveHost On > > > The problem is that once a client has created a new session with a=20 > first request, the second request produces this log error : > 2008-02-29 14:49:05,597 WARN httpclient.HttpMethodBase - Cookie > rejected: "$Version=3D0; JSESSIONID=3DBC07C2C3D44BB07E5B052DAAE9D5F56E; > $Path=3D/mycontext". Illegal path attribute "/mycontext". Path of= origin: > "/backOffice > > Do I miss something in the reverse proxy configuration, or is it =20 > something else ??? > For information, the client & server communicate without any problem =20 > when using the server's internal url... I'm not an expert in this stuff, but it sounds like you need= http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookie= domain http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookiep= ath (Your life would be easier if you kept the paths the same on the front and= back-end servers.) Joshua. --------------------------------------------------------------------- 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 Pour conna=EEtre nos solutions et services, visitez=20 http://www.ic.lu To learn about our services and solutions, please visit: http://www.ic.lu=20 This E-mail is confidential. If you are not the addressee you may not copy,= forward, disclose or use any part of it. If you have received this message= in error, please delete it and notify the sender immediately by return= E-mail. Internet communications cannot be guaranteed to be timely, secure, error or= virus-free. The sender does not accept liability for any errors or= omissions. --------------------------------------------------------------------- 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