[Zope-CMF] Any workarounds or tricks for getting portal content to look like it's directly under root?

Tres Seaver tseaver@palladion.com
Fri, 10 Aug 2001 13:04:10 -0400 (EDT)


On Fri, 10 Aug 2001, John Puster wrote:

> the only problem there is that URLs generated by the portal will be wrong.
> this is something i have been struggling with on and off since i started
> using zope.  i *think* the proper way to do it is with a SiteRoot, part of
> the SiteAccess product (included with zope these days).  here are some
> references:
> http://www.zope.org/Members/4am/SiteAccess2/vhosting
> http://www.zope.org/Members/anser/apache_zserver
> 
> i haven't actually run a site for very long doing this, as setting a
> siteroot has been a little bit unsettling, even though there are ways around
> it.  so, for the time being, i have lived with having the main site off the
> main directory (with a small redirector in the actual root directory).  i
> have been really curious how other people are accomplishing this, though.  i
> would love to hear exactly how cmf.zope.org is set up.

The dogbowl uses a VirtualHostMonster, in collaboration with some
Apache rewriting.  The rewrite looks like:

<VirtualHost ...>
 ServerName cmf.zope.org
 RewriteEngine On
 RewriteRule ^/(.*) ..../VirtualHostBase/http/cmf.zope.org:80/CMF/VirtualHostRoot/$1 [L,P]
 ...
</VirtualHost>

The host monster sits in the root of the site, as a sibling of
the 'CMF' object (the CMFSite instance).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com