I apologize profusely in advance - no doubt what I am about to report has been covered before. While my own ZServer installation of the latest Zope works flawlessly, our sysadmin is desperately trying to get Zope working with Apache (v1.3.9). If someone could look at the following setup and error snippets, I would greatly appreciate it. I need our site to run Zope so that I can migrate my ZODB over and publish it to the outside world. I don't know anything about Apache so, if possible, please try and phrase your response appropriately. Thanks in advance, Darran. ----- Traceback -------------------- Traceback (innermost last): File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 151, in publish File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/BaseRequest.py, line 304, in traverse File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (see above) ------ Zope error in html source ---------------- Sorry, the requested Zope resource does not exist.<p>Check the URL and try again.<p> <!-- [e=HTTP_CGI_AUTHORIZATION:,t=application GET
<HR NOSHADE> -------- Snip from httpd.conf (apache version 1.3.9) -------------- ... LoadModule rewrite_module libexec/mod_rewrite.so ... # Zope configuration maps /Zope/ to the Zope.cgi CGI script RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope(.*) /usr/local/apache/cgi-bin/Zope.cgi$1[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] -- Darran Edmundson [Darran.Edmundson@anu.edu.au]
Darran Edmundson wrote:
Sorry, the requested Zope resource does not exist.<p>Check the URL and try again.<p> <!-- [e=HTTP_CGI_AUTHORIZATION:,t=application
[snip]
RewriteRule ^/Zope(.*) /usr/local/apache/cgi-bin/Zope.cgi$1[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Looks like you need a space between '...cgi$1' and '[e=...'. Cheers, Evan @ 4-am
Evan Simpson wrote:
/usr/local/apache/cgi-bin/Zope.cgi$1[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Looks like you need a space between '...cgi$1' and '[e=...'.
Sorry Evan, I must have inadvertently removed that space when cutting and pasting - it is in the actual httpd.conf file. Any other suggestions? Cheers, Darran. -- Darran Edmundson [Darran.Edmundson@anu.edu.au]
Darran Edmundson wrote:
/usr/local/apache/cgi-bin/Zope.cgi$1[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
Looks like you need a space between '...cgi$1' and '[e=...'.
Sorry Evan, I must have inadvertently removed that space when cutting and pasting - it is in the actual httpd.conf file. Any other suggestions?
Well, here is a snip from the httpd.conf that we use here that works fine: RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] It looks remarkably similar, except that our RewriteRule takes everything after the slash, whereas yours takes the slash itself. Now, I know this works because it's what we use on our live server. (The [e= line is, of course, on the same line as the RewriteRule separated from the $1 by a single space). This rule will map any url into Zope though, if you wanted zope access through the /Zope/ url, then you would have to change the RewriteRule to ^/Zope/(.*) instead. -- Nick Garcia | ngarcia@codeit.com CodeIt Computing | http://codeit.com
Darran Edmundson wrote:
I apologize profusely in advance - no doubt what I am about to report has been covered before. While my own ZServer installation of the latest Zope works flawlessly, our sysadmin is desperately trying to get Zope working with Apache (v1.3.9). If someone could look at the following setup and error snippets, I would greatly appreciate it. I need our site to run Zope so that I can migrate my ZODB over and publish it to the outside world. I don't know anything about Apache so, if possible, please try and phrase your response appropriately.
Thanks in advance, Darran.
----- Traceback --------------------
Traceback (innermost last): File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/Publish.py, line 151, in publish File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/BaseRequest.py, line 304, in traverse File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /tmp_mnt/users/optics/www124/public_html/Zope-2.1.0-src/lib/python/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (see above)
------ Zope error in html source ----------------
Sorry, the requested Zope resource does not exist.<p>Check the URL and try again.<p> <!-- [e=HTTP_CGI_AUTHORIZATION:,t=application GET
<HR NOSHADE>
-------- Snip from httpd.conf (apache version 1.3.9) --------------
... LoadModule rewrite_module libexec/mod_rewrite.so
You also have AddModule mod_rewrite.c right?
# Zope configuration maps /Zope/ to the Zope.cgi CGI script
RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/Zope(.*) /usr/local/apache/cgi-bin/Zope.cgi $1[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
from your traceback it seems there is no %1 there (so no HTTP Authorization headers) I experienced the same problem, still unsolved - because of the rewrite all the headers are changed to REDIRECT_* -- but I also sow the python code(in Zope) which *was* dealing with this. -- CIMPOESU Teodor, Web Programmer @ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo@digiro.net , +(401)-330.47.28 official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/
participants (4)
-
Darran Edmundson -
Evan Simpson -
Nick Garcia -
Teodor Cimpoesu