Hi Zopistas, I saw a few products on zope.org for hosting / managing virtual domains ... but what product is first choice? Monster? SiteAccess? SiteAccess2? Surely this is a newbie question - my apologies ... ;-) Cheers, Vince ''' ô¿ô -
if you have apache in front of zope, then I'd use VirtualHostMonster, which is quite straight forward.. otherwise, if you have Zope without anything in front of it, you can do the following: let's say you want the folder /foo to become www.foo.org and /bar to become www.bar.org create a SiteRoot object on each folder with title, base and path empty. then at the root folder create a python script with the following content: hostname = context.REQUEST.HTTP_HOST sitemap = {} sitemap['www.foo.org']='foo' sitemap[www.bar.org']='bar' if sitemap.has_key(hostname): SiteRootPATH='/' context.REQUEST['TraversalRequestNameStack'].append(sitemap[hostname]) go back to root folder and select 'Set Access Rule' , click Add, then in the 'Rule Id' write the name of the python script you just created in the root folder and finally click 'Set Rule', that will make an Access Rule out of that pyscript. hope it helps.. Alex ----- Original Message ----- From: "Vincent - D. Ertner" <vincent@eec.de> To: "Zope" <zope@zope.org> Sent: Thursday, September 20, 2001 11:03 PM Subject: [Zope] Best Virtual Host Solution Hi Zopistas, I saw a few products on zope.org for hosting / managing virtual domains ... but what product is first choice? Monster? SiteAccess? SiteAccess2? Surely this is a newbie question - my apologies ... ;-) Cheers, Vince ''' ô¿ô - _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Vincent - D. Ertner <vincent@eec.de> said:
I saw a few products on zope.org for hosting / managing virtual domains ... but what product is first choice? Monster? SiteAccess? SiteAccess2?
I've created a small zclass called 'Virtual Host Folder' that adds itself to a ZCatalog on creation. The root folder's site access rule uses this catalog to map hostnames to folders. I hope to have one of our guys clean it up to iron out a couple of warts and then I'll put it on zope.org. -- Cees de Groot http://www.cdegroot.com <cg@cdegroot.com> GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B http://www.anti-dmca.org/
participants (3)
-
alex@quad.com.ar -
cg@cdegroot.com -
Vincent - D. Ertner