Getting started again (subdomain, user, logout)
Hi! Last year I played a bit with Zope and built a homepage with it. Unfortunately our shared host had to be re-installed and so I lost my old settings. When they said they would have upgraded their servers (Zope slowed down everything) now I decided to reinstall it. However, I only have a backup of my old user-directory. It was hosted under foo.bar.de - and here comes the problem: I can't manage to get that working again. Whatever I try, I can't get Zope delivering different root-dirs for www.bar.de and foo.bar.de. Since I'm getting "a bit" confused while reading the documentation (I remember it took me about a week last year to get it working because docs were so much confusing I had to try out everything on my own) I messed Zope by misconfiguring VHM: Suddenly I had a sub-directory as the root-directory for admin _and_ my user-acc and saw no other possibility to fix it than creating a new Zope-instance. I remember Zope allowed different users to log in only into their own root-dirs (subdomains) so they could not get to the real root. I also don't know how I made that. Now the next problem: I can't log out. No matter what I try, I'm still logged in as admin and I'm not able to log in as a user. I really have no clue why because it worked with the messed instance. (I'm using Opera 7.60) I would use something else since I don't really need all features of Zope but all CMS I can find are specialized on portals. (except typo3 but that's even more over-sized for my purposes (only me hosting a single homepage) than Zope) Thanks, Daniel
Daniel Neugebauer wrote at 2004-9-18 17:33 +0200:
... However, I only have a backup of my old user-directory. It was hosted under foo.bar.de - and here comes the problem: I can't manage to get that working again.
Looks like you should have documented *your* work...
Whatever I try, I can't get Zope delivering different root-dirs for www.bar.de and foo.bar.de.
When you have an Apache in front of Zope, you usually use an unconfigured VHM (Virtual Host Monster) instance in your Zope and one Apache named Virtual Host per domain. You use Apache Rewrite Rules (with "[P]" modifier) to delegate requests for the various virtual hosts to the respective Zope folders. There is a HowTo at Zope.org. Do not forget to document your own solution, in case you need to redo it again.
... I remember Zope allowed different users to log in only into their own root-dirs (subdomains) so they could not get to the real root. I also don't know how I made that.
Maybe, you defined your users in local "acl_users" and restricted the permissions in the root folder? Read the Zope Book (2.6/2.7 edition, online). You need background information when you really want to use Zope...
Now the next problem: I can't log out.
Learn about the difference between HTTP basic authentication and cookie authentication. You could read the Web publishing section of <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Use either a UserFolder that supports Cookie authentication or use CookieCrumber with any UserFolder. -- Dieter
Hi!
Looks like you should have documented *your* work...
Well, I guess that would have been best. ;)
When you have an Apache in front of Zope, you usually use an unconfigured VHM (Virtual Host Monster) instance in your Zope and one Apache named Virtual Host per domain.
I haven't tried that solution yet since I got it working with Zope only. But as I don't seem to be able to get everything working as it was I may try it with rewrite rules today. But before I will do so I would like to know if I am able to use Zope as an "overlay" to Apache, so I can still have directories managed by Apache rather than Zope if I apply a rewrite rule to my Apache root-dir. (domain.tld/dir1 -> domain.tld:8080/VHM/user/... but domain.tld/dir2 will not be rewritten)
Do not forget to document your own solution, in case you need to redo it again.
I think I have learnt from my mistake and I really will do it this time. :)
Maybe, you defined your users in local "acl_users" and restricted the permissions in the root folder?
Kind of, but everything I've tried yet didn't work.
Read the Zope Book (2.6/2.7 edition, online). You need background information when you really want to use Zope...
I already thought about getting the printed version of the book either from a local library or a shop. (I don't really like reading on a screen) At first I searched for "3rd party"-books but unfortunately there don't seem to be any (affordable) usable books.
Learn about the difference between HTTP basic authentication and cookie authentication. You could read the Web publishing section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Use either a UserFolder that supports Cookie authentication or use CookieCrumber with any UserFolder.
Thanks, I will take a look at it. ;) Bye, Daniel
On Mon, Sep 20, 2004 at 12:25:51PM +0200, Daniel Neugebauer wrote:
But before I will do so I would like to know if I am able to use Zope as an "overlay" to Apache, so I can still have directories managed by Apache rather than Zope if I apply a rewrite rule to my Apache root-dir. (domain.tld/dir1 -> domain.tld:8080/VHM/user/... but domain.tld/dir2 will not be rewritten)
Sure, apache can easily do that. There are plenty of docs on using mod_rewrite on apache.org. This is sometimes called "inside-out" hosting, where zope serves part of a site that is otherwise served by apache.
I already thought about getting the printed version of the book either from a local library or a shop. (I don't really like reading on a screen)
I can relate, but the printed version of the book is quite old (zope 2.4 maybe). There is a lot of new and improved material in the online versions. Maybe download the PDF and print it yourself :-) -- Paul Winkler http://www.slinkp.com
participants (3)
-
Daniel Neugebauer -
Dieter Maurer -
Paul Winkler