[Zope] newbie running zope under apache2 on freebsd

Jens Vagelpohl jens@zope.com
Fri, 13 Dec 2002 08:14:59 -0500


do you have any particular requirement to run PCGI? if not - just 
don't. use proxying rewrite rules instead. less moving wheels and 
simpler to set up.

jens


On Friday, Dec 13, 2002, at 07:32 US/Eastern, Rene Veerman wrote:

> 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.