[Zope] Zope and Apache: root of ZODB reference problem?

rgines@purina.com rgines@purina.com
Fri, 7 Jan 2000 10:28:11 -0600


>Hi Zopesters,

>We have a problem with our Zope under Apache installation.
>Namely, the rename|cut|copy|delete|export buttons do not work
>for checkbox selections in the root of the ZODB.
<snip>
>The problem seems to be a missing terminal slash in the
>URL generated by the management interface web pages.  That
>is, on our system Apache requires URLs of the form
>http://our.ip.address/optics/ to find the Zope cgi script.

I've been running into very similar problems.  So far most of the
examples that have been on this zope site and this mail list
have not been able to get me 100% to where I want to be.
(They have been extremely helpful however).

I was up late last night trying to get the last little bugs out of
my implementation on NT (which weems to have some
quirly little differences than a Linux installation).   I didn't get
everything done, but I think I have narrowed down the issues.

>The rewrite rule for our installation is:

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

My guess is that the /optics/ extraction is what is killing you.  I would
need to
see what else was in your config file.   The following syntax fixed one of
my problems (but created another).   Try this to see if it accomplishes
what
you want.  (Without seeing the rest of your config I may be way off)

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

>Any ideas about how to circumvent this problem?  (A non-Zope aside,
>can I intercept the URL that is being generated by my browser
>when using forms if I can't get access to the Apache logs?)

Trying to tie Apache / Zope / Rewrites and Virtual Hosting together
has proved much more delicate than I ever expected it to be.

When I am done and have things working just as I want, I am planning
on putting together a How-To which is leaning from the NT side (client
requirement ... no comments please <g>).   I'll probably be doing it
more for my benefit than anyone elses ... I don't want to have to
go through this again <g>.

>Any help is much appreciated.

I hope I understood your problem.

>Darran.