httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <xavier.lah...@ic.lu>
Subject RE: [users@httpd] Reverve proxy configuration & cookies ?
Date Mon, 03 Mar 2008 09:50:40 GMT

Hello,

I'm currently trying the directives ProxyPassReverseCookieDomain & ProxyPassReverseCookiePath.
So now my configuration looks like this :

        <IfModule proxy_module>
                ProxyRequests Off

                ProxyPass /backOffice http://my-tomcat:8080/mycontext/backOffice
                ProxyPassReverse /backOffice http://mytomcat:8080/mycontext/backOffice
                ProxyPassReverseCookieDomain .lu .com
		    ProxyPassReverseCookiePath /mycontext/backOffice /backOffice

        </IfModule>

When I start my application, it behaves as if the directives are not active ??!??
Is there anything wrong in my configuration ?


-----Original Message-----
From: xavier.lahaut@ic.lu [mailto:xavier.lahaut@ic.lu] 
Sent: vendredi 29 février 2008 17:47
To: users@httpd.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évrier 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,  <xavier.lahaut@ic.lu> wrote:
> Hello,
>
>  I'm completely new to apache reverse proxy configuration, and I've 
> got a  problem to use HttpSession throught my client/server 
> application  Client application : Java/swing application with the 
> jakarta librarie  HttpClient to communicate with the server  Server 
> application : HttpServlet runing under tomcat-5.5.25 at context 
> '/mycontext/backOffice'
>  Apache reverse proxy configuration :
>         <IfModule proxy_module>
>             ProxyRequests Off
>             ProxyPass /backOffice
>  http://my-tomcat:8080/mycontext/backOffice
>             ProxyPassReverse /backOffice 
> http://my-tomcat:8080/mycontext/backOffice
>                 ProxyPreserveHost On
>         </IfModule>
>
>  The problem is that once a client has created a new session with a 
> first  request, the second request produces this log error :
>  2008-02-29 14:49:05,597 WARN  httpclient.HttpMethodBase     - Cookie
>  rejected: "$Version=0; JSESSIONID=BC07C2C3D44BB07E5B052DAAE9D5F56E;
>  $Path=/mycontext". Illegal path attribute "/mycontext". Path of origin:
>  "/backOffice
>
>  Do I miss something in the reverse proxy configuration, or is it 
> something else ???
>  For information, the client & server communicate without any problem 
> 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#proxypassreversecookiedomain
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookiepath
(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 <URL:http://httpd.apache.org/userslist.html> 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ître nos solutions et services, visitez http://www.ic.lu

To learn about our services and solutions, please visit:
http://www.ic.lu 

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 <URL:http://httpd.apache.org/userslist.html> 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ître nos solutions et services, visitez 
http://www.ic.lu

To learn about our services and solutions, please visit:
http://www.ic.lu 

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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message