[Zope] Best Virtual Host Solution
Meilicke, Scott
scott.meilicke@intp.com
Fri, 21 Sep 2001 08:10:38 -0700
I'm using Zserver and Site Access, =
http://zope.org/Members/4am/SiteAccess,
version SiteAccess-2-0-0 plus Mapping. This supports virtual hosting
without a python script. =20
Install SiteAccess
Add a virtual host monster (vhm) in the root of your site
Click on the new vhm, and read the instructions. Note the Edit tab - =
this
is where you make the mappings.
-Scott
-----Original Message-----
From: alex@quad.com.ar [mailto:alex@quad.com.ar]
Sent: Thursday, September 20, 2001 8:05 PM
To: Vincent - D. Ertner; Zope
Subject: Re: [Zope] Best Virtual Host Solution
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 =3D context.REQUEST.HTTP_HOST
sitemap =3D {}
sitemap['www.foo.org']=3D'foo'
sitemap[www.bar.org']=3D'bar'
if sitemap.has_key(hostname):
SiteRootPATH=3D'/'
=
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
'''
=F4=BF=F4
-
_______________________________________________
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 )
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -=20
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )