[Zope] VirtualHostMonster w/ ZServer

Ron Bickers rbickers@logicetc.com
Wed, 7 Feb 2001 09:56:11 -0500


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Oleg
> Broytmann

>    As far as I understand VirtualHostMonster, it can create a virtual host
> only for root on www.foo.com. That is I can redirect
> http://www.foo.com/ to
> /VirtualHostBase/http/www.foo.com/vhosts/foo/VirtualHostRoot/.
>   But what if I want to make www.foo.com static site under Apache but
> redirect a directory (location, actually) to Zope? For exampl, I want
> www.foo.com to be a static site, but serve www.foo.com/Zope from Zope. It
> seems VirtualHostMonster cannot do this, and I need to go back to
> SiteAccess.

You can do this by redirecting all requests under /Zope to
/VirtualHostBase/http/www.foo.com/vhosts/foo/VirtualHostRoot/Zope

Under Apache with FastCGI, something like this:

RewriteRule ^/Zope/(.*)
/zope.fcgi/VirtualHostBase/http/www.foo.com/vhosts/foo/VirtualHostRoot/Zope/
$1 [L]

_______________________

Ron Bickers
Logic Etc, Inc.
rbickers@logicetc.com