[Zope] zope and fastcgi support

Petru Paler ppetru@coltronix.com
Mon, 2 Nov 1999 15:20:42 +0200


On Mon, Nov 01, 1999 at 09:53:05PM +0200, Teodor Cimpoesu wrote:
> > Q: what should be done so that users can access zope with just www.mysite.com/,
> > because with the above i need to go to www.mysite.com/z/
> a rewrite rule shall work but I dunno if you need that overhead, like
> RewriteEngine on
> RewriteLogLevel 0
> RewriteCond %{REQUEST_URI} !^/z/.*
> RewriteRule ^/(.*) /z/$1 [L]
> or somethin

   One that works:

RewriteEngine on
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/(.*) /home/httpd/html/fcgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,l]

(supposing that you have the fcgi Zope app configured in
/home/httpd/html/fcgi with:

FastCgiIpcDir /tmp/fcgi
FastCgiExternalServer /home/httpd/html/fcgi -socket zope

 and that you start Zope with:
start -L /tmp/fcgi/zope

-Petru