Re: ProxyPass and Tomcat's java jsessionid & cookies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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=3D29C52B819B2EBB874971ABA43866EE
And the sessions are not working (cookies problem?)
Using port 8080 (tomcat) all is working well.

This is my virtualhost  configuration:
<VirtualHost *:80>
       ServerAdmin  "webmaster@xxxxxxxxxx"
       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]
       <location "/WEB-INF/">
               # AllowOverride None
               deny from all
       </location>
</VirtualHost>

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux