RE: [Zope] Users cannot acces sites
Dag Clemens, We did this step by step (every step did take at least one whole day) Every time we encountered problems and resolved them before going to the next stage. Now there seems to be a rewrite rule mismatch We exported/imported the whole CFM sites Never had to configure SiteAccess before VirtualHostMonster is in both zopes (the old one is still running on different ports)
-----Oorspronkelijk bericht----- Van: Clemens Klein-Robbenhaar [mailto:robbenhaar@espresto.com] Verzonden: dinsdag 10 september 2002 14:40 Aan: roel@planetinterior.com Onderwerp: [Zope] Users cannot acces sites
Hi Roel,
Resume: we had a Dell PowerApp 120 running RH 7.0, Apache 1.3.x, Zope 2.5.0 binairy release upgraded to 2.5.1 we upgraded the machine to RH 7.3 with ext3, Apache 1.3.23 build python 2.1.3 from source rpm with '%define config_tkinter 0' build zope 2.5.1 from source (NOT rpm) exported CMF-sites from old Zope, imported them in new Zope to avoid 2GB Data.fs size limit (tested succesfully :-) added rewrite rules to apache: RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] started all.
Now the following happens: logging into the ZMI as manager on port 8080 : OK logging into the ZMI as manager on port 80 : OK logging into CMF site as a user on port 8080 : OK logging into CMF site as a user on port 80 : redirection to login page
What did we do wrong?
You did a little more than just the migration to a higher version, You also added virtual hosts, did You?
Better do one step after the other ...
Maybe the "SiteAccess" object in your virtual host root is not correctly configured? CMF may send the "wrong" login cookies ... (it uses a somewhat different authorization than the ZMI ...)
Cheers, Clemens
Hi Roel,
Dag Clemens,
We did this step by step (every step did take at least one whole day) Every time we encountered problems and resolved them before going to the next stage.
Sorry, I overlooked that in the report ...
Now there seems to be a rewrite rule mismatch
We exported/imported the whole CFM sites Never had to configure SiteAccess before
Sorry, I meant the "SiteRoot", which is maybe anyway not what You have. Secondly anyway this cannot be the problem as You can access the ZMI...
VirtualHostMonster is in both zopes (the old one is still running on different ports)
[snip report]
logging into the ZMI as manager on port 8080 : OK logging into the ZMI as manager on port 80 : OK logging into CMF site as a user on port 8080 : OK logging into CMF site as a user on port 80 : redirection to login page
What did we do wrong?
The difference between ZMI authorization and CMF authorization is the latter uses cookies. Maybe the login-cookie contains the information to be sent back to "localhost:8080" only, not to "localhost:80" ? Can You check Your browser about the stored cookies? Just a thought. Regards, clemens
participants (2)
-
Clemens Klein-Robbenhaar -
Roel Van den Bergh