You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alvise Nicoletti <li...@alvisenicoletti.com> on 2009/10/07 20:49:36 UTC

[users@httpd] Re: ProxyPass and Tomcat's java jsessionid & cookies

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@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]
>        <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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: ProxyPass and Tomcat's java jsessionid & cookies

Posted by Eric Covener <co...@gmail.com>.
On Wed, Oct 7, 2009 at 2:49 PM, Alvise Nicoletti
<li...@alvisenicoletti.com> wrote:

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

That's not the right directive name:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreversecookiedomain

-- 
Eric Covener
covener@gmail.com

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