[Zope-CMF] Virtual Host Monster and login

John Morton jwm@plain.co.nz
Mon, 4 Feb 2002 14:53:24 +1300


On Monday 04 February 2002 08:21, Magnus Heino wrote:
> Hi.
>
> I'm having problems with CMF/Cookie Crumbler (I guess?) and Virtual Host
> Monster.
>
> Zope is running on localhost:8080, and Roxen is running at
> golf.alvkarleby.net:80
>
> I have added this rewrite rule to roxen;
>
> LOCATION / CALL
> http://localhost:8080/VirtualHostBase/http//golf.alvkarleby.net:80/Golf/Vir
>t ualHostRoot/ rewrite
>
> Everything works just fine, except for logins... the password is accepted,
> but im redirected to the login page again. How can I solve this?
>
> Are the cookies set for the wrong domain or what?

When I last ran into this problem, it was because I'd imported the site tree 
into the production server retaining ownerships, but the user that owned most 
of the site (except for user content) didn't exist on the new server. 
Importing with the take ownership option did the right thing.

Of course it could be a cookie thing - try logging in with a browers that 
will ask you to accept a cookie on a per cookie basis and see what's being 
set. A successfull login will set __ac_name and __ac.

John