Help with Apache 2.0.59 + Tomcat 5.5 Session Lost
am 02.04.2008 20:08:24 von souporpower
We have an apache load balancer that forwards the request to one of 2
tomcat servers. There is a rewrite rule in the apache config that has
this syntax:
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [QSA,L,R]
I added the QSA based on some posts in this group.
The problem is there is no JSESSIONID=34343n3ko3u5390u4 in the URL.
Without the session info, the form that is shown has to be submitted
twice:
a) once without JSESSIONID in the url -- the form fields are ignored
and the browser is refreshed with JSESSIONID added to the URL.
b) second time with JSESSIONID in the url the form will be submitted
ok.
This has been very baffling. Any help would be appreciated.
Thanks
Re: Help with Apache 2.0.59 + Tomcat 5.5 Session Lost
am 02.04.2008 21:22:17 von souporpower
On Apr 2, 2:08=A0pm, "souporpo...@gmail.com"
wrote:
> We have an apache load balancer that forwards the request to one of 2
> tomcat servers. There is a rewrite rule in the apache config that has
> this syntax:
>
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [QSA,L,R]
>
> I added the QSA based on some posts in this group.
>
> The problem is there is no JSESSIONID=3D34343n3ko3u5390u4 in the URL.
> Without the session info, the form that is shown has to be submitted
> twice:
> a) once without JSESSIONID in the url -- the form fields are ignored
> and the browser is refreshed with JSESSIONID added to the URL.
> b) second time with JSESSIONID in the url the form will be submitted
> ok.
>
> This has been very baffling. Any help would be appreciated.
>
> Thanks
Just noticed that when there is only one Tomcat, everything works
fine. Forgot to mention that there is a JK connector between the
apache and tomcat. The problem appears when there are 2 or possibly
more tomcats behind apache.
Re: Help with Apache 2.0.59 + Tomcat 5.5 Session Lost
am 04.04.2008 17:54:12 von souporpower
On Apr 2, 3:22=A0pm, "souporpo...@gmail.com"
wrote:
> On Apr 2, 2:08=A0pm, "souporpo...@gmail.com"
> wrote:
>
>
>
>
>
> > We have an apache load balancer that forwards the request to one of 2
> > tomcat servers. There is a rewrite rule in the apache config that has
> > this syntax:
>
> > RewriteCond %{SERVER_PORT} !^443$
> > RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [QSA,L,R]
>
> > I added the QSA based on some posts in this group.
>
> > The problem is there is no JSESSIONID=3D34343n3ko3u5390u4 in the URL.
> > Without the session info, the form that is shown has to be submitted
> > twice:
> > a) once without JSESSIONID in the url -- the form fields are ignored
> > and the browser is refreshed with JSESSIONID added to the URL.
> > b) second time with JSESSIONID in the url the form will be submitted
> > ok.
>
> > This has been very baffling. Any help would be appreciated.
>
> > Thanks
>
> Just noticed that when there is only one Tomcat, everything works
> fine. Forgot to mention that there is a JK connector between the
> apache and tomcat. The problem appears when there are 2 or possibly
> more tomcats behind apache.- Hide quoted text -
>
> - Show quoted text -
This has been resolved by upgrading Apache to 2.2.4
Thanks