[Zope] Zope+Apache config

Steve Spicklemire steve@spvi.com
Tue, 7 Sep 1999 16:21:49 -0500 (EST)


Hmmm....

is Zope.cgi a link or a real file? If it's a link
you may also need FollowSymLinks:

e.g., 

Options ExecCGI FollowSymLinks

I have something like this:

<VirtualHost <your virtual host ip address>:80>

ServerAdmin steve@spvi.com
DocumentRoot /webroot/htdocs
ServerName test3.your.domain
ErrorLog /webroot/logs/error_log
CustomLog /webroot/logs/access_log common
<Directory /usr/local/etc/Zope2>
Options ExecCGI
</Directory>

#RewriteLog /webroot/logs/rewrite.log
#RewriteLogLevel 9
RewriteEngine on
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/(.*) /usr/local/etc/Zope2/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
</VirtualHost>

Also... what version of apache are you using? I thought
access.conf was deprecated now.... not sure about that...

-steve

>>>>> "Tim" == Tim Wilson <wilson@chemsun.chem.umn.edu> writes:

    Tim> On Tue, 7 Sep 1999, Steve Spicklemire wrote:

    >> Something like this should work:
    >> 
    >> <Directory /where/you/have/Zope/installed/> Options ExecCGI
    >> </Directory>
    >> 
    >> otherwise you may not be able execute the Zope.cgi script!
    >> 
    >> Also.. make sure that the Zope pcgi process can read the
    >> script!  It seems to default to 'rwx--x--x' which, in my
    >> configuration, won't fly.

    Tim> OK, I checked access.conf and found:

<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI
</Directory>

I copied Zope.cgi from my Zope directory to /home/httpd/cgi-bin. Then I
did a chmod 755 Zope.cgi, but no joy. Same error message.

-Tim

--
Timothy Wilson       | "The faster you  |  Check out:
Henry Sibley H.S.    |  go, the shorter | http://slashdot.org/
W. St. Paul, MN, USA |  you are."       | http://linux.com/
wilson@chem.umn.edu  |       -Einstein  | http://www.mn-linux.org/


    Tim> I copied Zope.cgi from my Zope directory to
    Tim> /home/httpd/cgi-bin. Then I did a chmod 755 Zope.cgi, but no
    Tim> joy. Same error message.

    Tim> -Tim

    Tim> -- Timothy Wilson | "The faster you | Check out: Henry Sibley
    Tim> H.S.  | go, the shorter | http://slashdot.org/ W. St. Paul,
    Tim> MN, USA | you are."  | http://linux.com/ wilson@chem.umn.edu
    Tim> | -Einstein | http://www.mn-linux.org/