[Zope] zope + apache + rewrite

PieterB PieterB <pieterb@gewis.nl>
Fri, 11 Apr 2003 16:45:05 +0200 (CEST)


> In root of zope i have /is folder.
> All this works, but in apache /cgi-bin directory i have irc.cgi script 
> and i need to call www.is.lg.ua:5000/chat so that 
> www.is.lg.ua:5000/cgi-bin/irc.cgi will be called.

try something like:

<VirtualHost *>
       ServerName foo.bar
       RewriteEngine On
       RewriteRule ^/cgi-bin - [l]
       RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/foo.bar/plone/VirtualHostRoot/$1 [L,P]
       ErrorLog /var/log/foo.bar-error.log
       TransferLog /var/log/foo.bar-access.log
       ProxyVia on
</VirtualHost>