[Zope] VirtualHostFolder (Was: ANN: SiteAccess v0.1.0 )

Michael Bernstein mbernstein@profitscape.net
Wed, 20 Oct 1999 12:22:39 -0700


Joshua Brauer wrote:

> At 7:58 AM +0000 10/20/99, Oleg Broytmann wrote:
> >On Tue, 19 Oct 1999, Evan Simpson wrote:
> > > A new version of SiteAccess is up at
> > > http://zope.org/Members/4am/SiteAccess, and I've successfully used it
> > > for Virtual Hosting.  See the info page at the site for an example.
> >
> > What is the status of work on virtual hosting in Zope community? I
> >tested Andreas patch (http://www.mtg.co.at/projects/subhosting) and found
> >it a little poor; I tested VirtulFolder patch - it damaged my installation,
> >so I have to reinstall. I'll test SiteAccess. Are there other projects? (I
> >think I'll attack the problem a bit later if I coudn't find adequate solution).
>
> <snippage>
>
>
> Each is a folder in a single Zope instance. The problem is with directories being repeatedly put in the path. so you get www.mountainwest.org/MountainWest/MountainWest/MountainWest this *generally* doesn't affect much, but it does mess up Zcatalog as it catalogs objects several times. SiteAccess will (as I understand it) solve this problem. The above sites use Apache/PCGI to do the virtual hosting.

Bruce Perens posted the following to the Squishdot list recently:

> VirtualHostFolder, unfortunately, is broken in a few ways. First, the value
> of "URL" in the Zope environment is not corrected as it would be if you were
> using ZOPE_DROP_FOLDERS. I tried to hack ZOPE_DROP_FOLDERS to fix that.
> Then, after discussing this with Adam Feuer (author of VirtualHostFolder), I
> ended up using a more elegant and efficient patch from Evan Simpson that does
> the same job, but does its work in BaseRequest.py . Adam will include this code
> in the next version of VirtualHostFolder.
>
> The next thing I need to do is have VirtualHostFolder also do re-direction,
> so that references to the folder itself can be redirected to one of the
> objects it contains. Currently I just hacked a redirect into the index_html
> method, but I want to catch _all_ methods.
>