[Zope] Domain docroot

Gilles Lenfant glenfant@bigfoot.com
Thu, 27 Dec 2001 18:02:45 +0100


Many possible solutions...
Is your Zope server behind Apache ?
In that case, put a VirtualHostMonster object at the root of your Zope and
follow instructions in the help to change/set  accordingly an Apache
VirtualHost.

Otherwise, look at the doc in Z2.py for changing the HTTP port of Zope to
80.
You can make a virtual host in a Zope using this tip provided by Alex some
weeks ago:

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.


----- Original Message -----
From: "Allen May" <allen.may@mcsinet.com>
To: <zope@zope.org>
Sent: Thursday, December 27, 2001 5:18 PM
Subject: [Zope] Domain docroot


> The default for administering Zope is http://localhost:8080
> <http://localhost:8080> , how do I configure ZOPE to serve
> http://mydomain.com <http://mydomain.com>  without the 8080?
>
> I plan on using ZOPE for our IntrAnet and wanted to make sure I can have
our
> employees point to our Intranet domain name, without the 8080.
>
> Thanks
>
> Allen May
> MCSi Web Admin
> 800.842.1702 x7628
>
>