[Zope] Multiple virtual hosts and domains

ethan mindlace fremen mindlace@digicool.com
Wed, 21 Jun 2000 19:18:40 -0400


Alex Gould wrote:
> 
> Hugo Ramos wrote:
> 
> > After testing SiteAccess for about 100 times... i still can't get zope to
> > serve multiple virtual hosts and domains...

[...]

> I just recently asked this question and got it to work.  This setup
> works if you have several subdomains 'sitea.domain.tld' and
> 'siteb.domain.tld' etc.  It may have to be modified to work with other
> setups - don't ask me how!

but please do look at Evan's excellent documentation, where he does
cover several examples.

 http://www.zope.org/Members/4am/SiteAccess/info

> -  create folders sitea, siteb, and so on in your root zodb directory
> -  put a siteroot in each folder, leaving all fields except name blank
> -  make a dtml method in the root directory called virtual_hosts or
> something, consisting of the following script:
> <dtml-comment>
> Get subdomain:
> </dtml-comment>

[snip]

quick note: Access rules don't care if you leave out the dtml-comment
tags.

> This should work, but don't ask me how (credit goes to Ethan Mindlace
> Freeman, who gave me these instructions).  Good luck!

it's Fremen, as in spice, giant worms, arrakis ... :-)

~ethan