httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nino Saturnino Martinez Vazquez Wael <>
Subject Re: [users@httpd] ProxyPass/ProxyPassreverse shared cookies?
Date Thu, 29 May 2008 18:26:31 GMT
After some wondering, I decided to see if changing domain name would 
help, I mean going away from having the danish character æ in the 
domain, and it did. And I actually did not have to use cookie rewrite or 

So this works too using mod proxy..

Nino Saturnino Martinez Vazquez Wael wrote:
> Replying inline... And thanks for your mail.
> Krist van Besien wrote:
>> On Tue, May 27, 2008 at 11:25 AM, Nino Saturnino Martinez Vazquez Wael
>> <> wrote:
>>> Hi
>>> I have two applications running in a tomcat instance, I use apaches mod
>>> proxy to forward to them accordingly. However I have trouble getting 
>>> a share
>>> cookie to be visible in each application. Since cookies need to be 
>>> on the
>>> same path and domain. Currently no cookies are going out to the 
>>> browser from
>>> apache2 http.
>> Are you sure no cookies are going out? Have you looked at your http
>> traffic using something like LiveHTTPHeaders or firebug?
> I did check with web developer, and firecookie. However as it turns 
> out after doing a little deeper check it became apparent that it's 
> probably the domain name that's messing with stuff. So the cookies are 
> set just not for the current domain, but suffixed with forum and 
> beta(like you write). Problem is that my domain contains an æ it's 
> something like this : domæ however there are trouble with this so 
> forexample firefox recognises it as domæ but IE6 does 
> I've setup Apache to use the, can I 
> have two domains, so that I also use the one with æ, it's just a 
> matter of adding the other name as an server alias right, I guess 
> Apache http supports æ ø å etc?
>> Normally apache just forwards cookies produced by your app to the
>> client. you can ask apache to change the cookiedomain and the path,
> I've tried todo this:
> (beta)
>    ProxyPassReverseCookiePath / 
> /tomcatcontex/                                                                
>    ProxyPassReverseCookieDomain /tomcatcontex beta.domæ
> (forum)
>    ProxyPassReverseCookiePath /jforum-2.1.8 
> /                                                                        
>    ProxyPassReverseCookieDomain /jforum-2.1.8 beta.domæ         
> But obviously it does not work, both cookie domains are set to:
> (the tomcat cookie)
> (the forum cookie)
> It looks like the domain path are being used, is only /.
>> You have configured two virtual hosts, and
>>, and want to share cookies between them, is that
>> correct?
> Yes exactly.
>> In this case you must make sure that cookiedomain is
>> If you set cookidomain to the cookie will only be sent
>> by the browser on requests to, and not on requests to
> I am aware of this, but thanks for reminding.
>> Krist

-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
+45 2936 7684

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message