ProxyPass and Tomcat"s java jsessionid & cookies

ProxyPass and Tomcat"s java jsessionid & cookies

am 07.10.2009 14:23:05 von Alvise Nicoletti

Hi ...

I have a problem with cookies/sessions with jsp using proxypass linking
apache2.2+tomcat6.

When I do a login from port 80, the jsessionid is in the browser's link
like this:
http://nuovo.DOMAIN.COM/utente.do%3bjsessionid=3D29C52B819B2 EBB874971ABA43866EE
And the sessions are not working (cookies problem?)
Using port 8080 (tomcat) all is working well.

This is my virtualhost configuration:

ServerAdmin "webmaster@elan42.com"
ServerName nuovo.DOMAIN.COM

ProxyPreserveHost On
ProxyPass / http://localhost:8080/CompuService/
ProxyPassReverse / http://localhost:8080/CompuService/


LogLevel warn
CustomLog /var/log/apache2/access.log
ErrorLog /var/log/apache2/error.log


RewriteEngine on
RewriteRule ^/CompuService/(.*)$ http://nuovo.DOMAIN.COM/$1 [L]

# AllowOverride None
deny from all



Someone said me that we miss some "ProxyPassCookie" options but I don't
know how to configure them...

Can you help me?

------------------------------------------------------------ ---------
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

Re: ProxyPass and Tomcat"s java jsessionid & cookies

am 07.10.2009 20:49:36 von Alvise Nicoletti

Alvise Nicoletti wrote:
> Hi ...
>
> I have a problem with cookies/sessions with jsp using proxypass
> linking apache2.2+tomcat6.
>
> When I do a login from port 80, the jsessionid is in the browser's
> link like this:
> http://nuovo.DOMAIN.COM/utente.do%3bjsessionid=3D29C52B819B2 EBB874971ABA43866EE
>
> And the sessions are not working (cookies problem?)
> Using port 8080 (tomcat) all is working well.
>
> This is my virtualhost configuration:
>
> ServerAdmin "webmaster@elan42.com"
> ServerName nuovo.DOMAIN.COM
>
> ProxyPreserveHost On
> ProxyPass / http://localhost:8080/CompuService/
> ProxyPassReverse / http://localhost:8080/CompuService/
>
>
> LogLevel warn
> CustomLog /var/log/apache2/access.log
> ErrorLog /var/log/apache2/error.log
>
>
> RewriteEngine on
> RewriteRule ^/CompuService/(.*)$ http://nuovo.DOMAIN.COM/$1 [L]
>
> # AllowOverride None
> deny from all
>

>

>
> Someone said me that we miss some "ProxyPassCookie" options but I
> don't know how to configure them...
>
> Can you help me?
>
Tryed to add this line to the upper configuration:
ProxyPassCookie domain=/ domain=http://localhost:8080/CompuService/

But:
/etc/init.d/apache2 reload
Syntax error on line 8 of /etc/apache2/sites-enabled/003-compuservice:
Invalid command 'ProxyPassCookie', perhaps misspelled or defined by a
module not included in the server configuration
...fail!

Can someone help me?
Are you receiving my emails?

------------------------------------------------------------ ---------
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

Re: Re: ProxyPass and Tomcat"s java jsessionid &

am 07.10.2009 20:55:32 von Eric Covener

On Wed, Oct 7, 2009 at 2:49 PM, Alvise Nicoletti
wrote:

> Tryed to add this line to the upper configuration:
> ProxyPassCookie =A0 domain=3D/ domain=3Dhttp://localhost:8080/CompuServic=
e/
>
> But:
> /etc/init.d/apache2 reload
> Syntax error on line 8 of /etc/apache2/sites-enabled/003-compuservice:
> Invalid command 'ProxyPassCookie', perhaps misspelled or defined by a mod=
ule
> not included in the server configuration
> =A0...fail!

That's not the right directive name:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypas sreversecookied=
omain

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
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