[Zope] newbie running zope under apache2 on freebsd

Rene Veerman rene@outerheaven.net
Fri, 13 Dec 2002 13:32:52 +0100


I've added the following to my httpd.conf;

RewriteEngine on
RewriteRule ^/Zope$ /Zope/ [R]

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi/$1 [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

<Directory /usr/local/www/cgi-bin-dist>
   Options +ExecCGI
</Directory>

but when i ask for localhost/Zope, i get this error in
/var/log/httpd-error.log;

[Wed Dec 11 19:15:26 2002] [error] [client 192.168.102.226] File does not exist: /usr/local/www/cgi-bin-dist/Zope.cgi/

However;

 $ ls /usr/local/www/cgi-bin-dist/
 Zope.cgi     pcgi-wrapper printenv     test-cgi

When I change the RewriteRule in httpd.conf to read

RewriteRule ^/Zope/(.*) /usr/local/www/cgi-bin/Zope.cgi$1 [env=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

and ask for it again, I get no errors in httpd-error.log anymore, but a plain
dump of the CGI script in my browser, which is *also* not what I want ;)

Help is very much appreciated.