I installed my RH7.2 with apache. Just changed the
"ServerName" to www.ourdomain.com. After
that, I downloaded the Zope tar package and built it myself. I installed it and
delete the directory with Zope. And then I downloaded the RPM version and use
RPM to install it. Moreover, I installed the Zope-pcgi RPM too. Of course, I
changed the httpd.conf and put in Five lines Rewrite command.:
RewriteEngine On
RewriteRule ^/static/(.*) /var/www/html/$1
[l]
RewriteRule ^/cgi-bin/(.*) /var/www/cgi-bin/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-http-cgi,l]
RewriteCond %{HTTP:Authorization}
^(.*)
RewriteRule ^(.*) /var/www/cgi-bin/Zope$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Ah, I also changed the line in <Directory
/var/www/cgi-bin> from "Options None" to "Options FollowSymLinks ExecCGI" too.
However, when I start the 2 daemons, httpd and
zope. I got error message in apache log. It is something like " File does not
exist :/var/wwww/cgi-bin/Zope/"
If I changed the last line of Rewrite commands to
(RPM page) :
RewriteRule ^/(.*) /var/www/cgi-bin/Zope/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Then, when I use client browser to link to that
server (say http://192.168.1.109), it will
come out a download box and let me download the file Zope.cgi. Looks like apache
cannot work with cgi files.
Please help !!!
Thanks in advance
Leo