[Zope] fastcgi and site root

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 21 Sep 2001 17:37:07 +0400


On Fri, Sep 21, 2001 at 09:27:40AM -0400, Behrens Matt - Grand Rapids wrote:
> RewriteEngine on
> RewriteRule ^/(.*) /Zope/$1 [PT]
> 
> FastCgiIpcDir /tmp
> FastCgiExternalServer /oracle/product/8i/Apache/Apache/htdocs/Zope \
>          -socket zope.soc -pass-header Authorization
> 
> <Location /Zope>
> Options ExecCGI
> SetHandler fastcgi-script
> </Location>
> ----
> 
> Everything is swell with the exception of one teeny tiny problem. 
> "Zope" keeps finding its way into the URI when I use absolute_url.  This 
> is a single server and I want Zope handling the site root.

   Use SiteAccess' VirtualHostMonster. I do it this way:

<IfModule mod_fastcgi.c>
ScriptAliasMatch ^/fcgi/zope.net.ru(.*)$ /usr/local/apache/htdocs/fcgi/VirtualHostBase/http/phd.russ.ru/zope.net.ru/VirtualHostRoot/_vh_fcgi/_vh_zope.net.ru$1
ScriptAliasMatch ^/fcgi(.*)$ /usr/local/apache/htdocs/fcgi$1
FastCgiExternalServer /usr/local/apache/htdocs/fcgi -socket /usr/local/Zope/var/fcgi.soc -pass-header Authorization

<Location /fcgi>
SetHandler fastcgi-script
CharsetRecodeMultipartForms Off
</Location>
</IfModule>

Oleg.
---- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.