[Zope] New version of mod_pcgi

Oleg Broytmann phd@emerald.netskate.ru
Tue, 22 Jun 1999 14:06:50 +0400 (MSD)


Hello!

   The idea of "mount poin" (PCGI_Mount /pcgi/ directive) made me
suspicious. Does it mean I can use mod_pcgi only limited way?
   Few quetsions, and I am afraid the answer will be "No, you cannot".

1. Could I redirect different locations to different Zope folders? With
Zope.cgi and mod_rewrite I can do it:

RewriteRule ^/z1/(.*) /usr/local/apache/cgi-bin/Zope.cgi/z1/$1
RewriteRule ^/z2/(.*) /usr/local/apache/cgi-bin/Zope.cgi/manage/z2/$1

2. What about virtual hosts? Zope.cgi allows it:

<VirtualHost 192.168.0.1>
ServerName www.server1
RewriteRule ^/Zope/(.*) /usr/local/apache/cgi-bin/Zope.cgi/virtual1/$1
</VirtualHost>

<VirtualHost 192.168.0.1>
ServerName www.server2
RewriteRule ^/Zope/(.*) /usr/local/apache/cgi-bin/Zope.cgi/virtual2/$1
</VirtualHost>

3. How can I run different Zopes on the same machine? With Zope.cgi:

RewriteRule ^/z1/(.*) /usr/local/apache/cgi-bin/Zope1.cgi/$1
RewriteRule ^/z2/(.*) /usr/local/apache/cgi-bin/Zope2.cgi/$1

Oleg.
---- 
    Oleg Broytmann        Netskate/Inter.Net.Ru        phd@emerald.netskate.ru
           Programmers don't die, they just GOSUB without RETURN.