[Zope] Zope/Apache

Michael Arndt, s+c ma.s+c@bmw.de
Sun, 21 Nov 1999 15:20:41 +0100 (MEZ)


Hello,

i have tried to connect Apache/Zope and do something wrong.

What i was thinking to do was Zope Multithreaded like in docs/Webservers.txt
I have Apache 1.3 /Zope 2.1beta OS: SGI Irix 6.5 and Linux (Suse 6.2)

Error encountered: When entering the passwort of superuser
at http//localhost:80/cgi-bin/Zope.cgi/manage
i get access denied                                          

What works like i did not think:
I can connect to localhost:8080/ and login to Zope. Here my authentication 
works, but should this connect work in Multithreaded mode ?

What doesn't work:
The simple way: single thread: Just not starting Zserver, Copying
Zope.cgi and modifiing httpd.conf.
When i try this: I get Service not available
when trying to connect to:
http//localhost:80/cgi-bin/Zope.cgi/manage
In multithreaded config:
I point to Apache-cgi-bin when starting Zserver:
start Script modified to:
z2.py -p /usr/local/httpd/cgi-bin/Zope.cgi
(I have only this dir enabled for cgi in Apache, so i can use no link !)

I have the following line in httpd.conf:
RewriteEngine on
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/Zope/(.*) /usr/local/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]        

(Zope is installed under /root/zope/rel2.1/Zope-2.1.0b2-src,
 Apache under /usr/local/httpd)

I would appreciate your Help and answer to ma.s+c@bmw.de
(temporariliy adress since our router is out of order, so this
 adress is not in the list)

thanks
Micha

-i have tried to strace apache Process:
it calls pcgi...
and Zope .cgi but i never see a stat on the file  access,but since changes in 
access are
only registered after restart i asume that access is read in memory not in
file)

Here i have my apache configured to log the rewrite 

--the log from the rewrite looks for me starnge (passed through ?)
bash-2.03# more zap_rewrite_log
127.0.0.1 - - [22/Nov/1999:13:30:11 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage
127.0.0.1 - - [22/Nov/1999:13:30:11 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80bca7c/subreq] (1) pass through /man
age
127.0.0.1 - - [22/Nov/1999:13:31:11 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage
127.0.0.1 - - [22/Nov/1999:13:31:11 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80bca7c/subreq] (1) pass through /man
age
127.0.0.1 - - [22/Nov/1999:13:31:20 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage
127.0.0.1 - - [22/Nov/1999:13:31:20 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80bca7c/subreq] (1) pass through /man
age
127.0.0.1 - - [22/Nov/1999:13:31:26 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage
127.0.0.1 - - [22/Nov/1999:13:31:26 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80bca7c/subreq] (1) pass through /man
age
127.0.0.1 - - [22/Nov/1999:13:40:00 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage
127.0.0.1 - - [22/Nov/1999:13:40:00 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80bca7c/subreq] (1) pass through /man
age
127.0.0.1 - - [22/Nov/1999:13:40:04 +0100] [lap2.m.science-computing.de/sid#8083444][rid#80b6674/initial] (1) pass through /cg
i-bin/Zope.cgi/manage                                                                
--more bits---
I had a look at zap, but when thsi starts up (i have modified usr
to a user which exists on my insatllation it tries to start with a very
strange gid and bails out. I have not found where this gid stems from.
I have compared zag and my httpd.con and see no diff ...