[Zope] pcgi or fastcgi with siteroot possible ?

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Mon, 28 Jan 2002 21:38:31 +0300


On Mon, Jan 28, 2002 at 07:27:33PM +0100, Joachim Schmitz wrote:
> ist it possible to use the siteroot product with fastcgi or pcgi ? If yes 
> how do the rewrite rules for apache look like ? All HowTos seam to use the 
> proxy aproach.

   Perfectly possible. I use both (just to experiment). This way:

<IfModule mod_pcgi2.c>
PCGI_NAME Zope
PCGI_MODULE_PATH /usr/local/Zope/lib/python/Zope
PCGI_PUBLISHER /usr/local/Zope/pcgi/pcgi_publisher.py
PCGI_EXE /usr/local/bin/pythonX
PCGI_SOCKET_FILE /usr/local/Zope/var/pcgi.soc
PCGI_PID_FILE /usr/local/Zope/var/pcgi.pid
PCGI_ERROR_LOG /usr/local/Zope/var/pcgi.log
PCGI_DISPLAY_ERRORS 1

<Location /zope.net.ru>
SetHandler pcgi-handler
PCGI_ROOT /VirtualHostBase/http/phd.russ.ru/zope.net.ru/VirtualHostRoot/_vh_zope.net.ru
</Location>
</IfModule>

<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
</Location>
</IfModule>

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