Problem with Apache 2 and Zope 2.7
Hello, I try to setup a Apache and Zope configuration using RewriteRules. The Zope Server is bound to the IP 127.0.0.1. I've used these expressions inside a VirtualHost block of http.conf. As a first step they should redirect all requests to the VirtualHost to the Zope server: RewriteEngine On RewriteLog "/var/log/httpd/rewrite.log" RewriteRule ^/(.*) http://localhost:8080/$1 [L,P] The client web-browser says: 403 Forbidden Forbidden You don't have permission to access /manage on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6g PHP/4.3.2 Server at centershock.net Port 80 When accessing it with http://centershock.net:8080/manage it works perfect. What's wrong? Thanks, Florian This is a output of the rewrite.log 217.86.12.38 - - [14/Oct/2003:15:43:18 +0200] [centershock.net/sid#811e570] [rid#823aa58/initial] (2) init rewrite engine with requested uri /manage 217.86.12.38 - - [14/Oct/2003:15:43:18 +0200] [centershock.net/sid#811e570] [rid#823aa58/initial] (2) rewrite /manage -> http://localhost:8080/manage 217.86.12.38 - - [14/Oct/2003:15:43:18 +0200] [centershock.net/sid#811e570] [rid#823aa58/initial] (2) forcing proxy-throughput with http:// localhost:8080/manage This is a part of netstat -l: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:http-alt *:* LISTEN Zope is listening.
Subject says it all! (well, sort of) 2003-10-14T10:11:36 PROBLEM(100) ZODB Could not import class 'Connection' from module 'Products.ZODBCDA.DA' This shows up in our eventlog.log off and on throughout the day on both our Zope clients connected to a ZEO server. We used to use ZODBCDA but stopped a LONG time ago. We think there may be an errant method hanging around with a bogus database connection in it. Is there a way to magically search for the text in the connection string of a ZSQL method?? Thanks!!! Allen
2003-10-14T10:11:36 PROBLEM(100) ZODB Could not import class 'Connection' from module 'Products.ZODBCDA.DA'
This shows up in our eventlog.log off and on throughout the day on both our Zope clients connected to a ZEO server. We used to use ZODBCDA but stopped a LONG time ago. We think there may be an errant method hanging around with a bogus database connection in it. Is there a way to magically search for the text in the connection string of a ZSQL method??
Either write a treewalker (read: recursive) script that checks that attribute or try the ZCatalog. Can probably catalog ZSQL methods and check the attributes through that. --jcc
Allen wrote at 2003-10-14 10:45 -0400:
Subject says it all! (well, sort of)
2003-10-14T10:11:36 PROBLEM(100) ZODB Could not import class 'Connection' from module 'Products.ZODBCDA.DA'
This shows up in our eventlog.log off and on throughout the day on both our Zope clients connected to a ZEO server. We used to use ZODBCDA but stopped a LONG time ago. We think there may be an errant method hanging around with a bogus database connection in it. Is there a way to magically search for the text in the connection string of a ZSQL method??
You can search your "Data.fs" file with a text editor. Be warned: it is a binary file but contains many strings, you may be interested in. If your storage file is not too large, dumping the file with "fsdump" may make your work easier. Dieter
On Tue, 2003-10-14 at 06:50, Florian Lindner wrote:
The client web-browser says: 403 Forbidden
Forbidden You don't have permission to access /manage on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6g PHP/4.3.2 Server at centershock.net Port 80
When accessing it with http://centershock.net:8080/manage it works perfect.
Zope isn't the problem here, your Apache configuration is. Note that the 403 came from *Apache*, not Zope. Though I've never had this problem with proxying Zope, Apache *will* complain if you try to host a filesystem folder that you haven't explicitly allowed. Perhaps you have a default rule of deny somewhere that needs to be excepted for this case. I'd check your regular Apache logs for more clues. HTH, Dylan
participants (5)
-
Allen -
Dieter Maurer -
Dylan Reinhardt -
Florian Lindner -
J Cameron Cooper