Problem with VirtualHostMonster response
I have a strange problem. To access Zope I use an apache rewrite rule: <VirtualHost 192.168.1.2:80> DocumentRoot /var/www/hosts/www.dbde.nl/ ServerName www.dbde.nl RewriteEngine On ReWriteRule ^/zope(.*) http://www.dbde.nl:8080/VirtualHostBase/http/www.dbde.nl:80/dbde/VirtualHost Root/$1 </VirtualHost> This process works fine. I have a VirtualHostMonster in my Zope root, and the folder dbde is present. When I type the URL www.dbde.nl/zope i get directed to the right directory, but not all the content can be displayed and the URL is not rewritten in the webpage that is the result. It is: http://www.dbde.nl:8080/VirtualHostBase/http/www.dbde.nl:80/dbde/VirtualHost Root/. Apparantly Zope can interpret the VirtualHostRoot but not the other part. You can try it for yourself on the link above. I already tried a complete new install of Zope, but to no avail. What is the cause of this and how can it be solved? Regards, Ewoud de Boer
Ewoud de Boer wrote:
ReWriteRule ^/zope(.*) http://www.dbde.nl:8080/VirtualHostBase/http/www.dbde.nl:80/dbde/VirtualHost Root/$1
You are missing a critical piece of your rule, namely the " [P,L]" at the end. This tells Apache to use mod_proxy to proxy your rewritten request (and stop rule processing). Cheers, Evan @ Zope
Trying to install CMF 1.2 on Win2000 Zope 2.4.3 ( I'm logged in to Windows with admin privs) Installed: Zope PageTemplates 1.4.1 in lib/python/products TAL 1.4.1 in lib/python ZTUtils 1.1.3 in lib/python CMF 1.2 in lib/python/products Start Zope and get error: 2002-01-25T16:16:35 ERROR(200) Zope Couldn't install PageTemplates Traceback (innermost last): File C:\servers\UATEST~1.3\lib\python\OFS\Application.py, line 668, in install_product (Object: Zope) (Info: PageTemplates) File C:\servers\uatestZope2.4.3\lib\python\Products\PageTemplates\__init__.py, line 96, in initialize AttributeError: 'Products.PageTemplates.ZopePageTemplate' module has no attribute 'initialize' I ignored the error >> started Zope >> added a portal >> added a user. When I view the default home page while logged in as the newly added user I see "...To change the content just select "Edit" in the Tool Box on the left." However, there is no Edit tool that I can see? I assume this relates to the Templates error? I found this: http://www.zope.org/Members/jim/ZPTIssueTracker/59/1 which I believe is not what's happening here. 1) I'm on Windows2k and logged in as the user who installed Zope 2) The CMF products installed fine. Any suggestions? -Ryan
R^3 writes:
Trying to install CMF 1.2 on Win2000 Zope 2.4.3 ... Start Zope and get error:
2002-01-25T16:16:35 ERROR(200) Zope Couldn't install PageTemplates Traceback (innermost last): File C:\servers\UATEST~1.3\lib\python\OFS\Application.py, line 668, in install_product (Object: Zope) (Info: PageTemplates) File C:\servers\uatestZope2.4.3\lib\python\Products\PageTemplates\__init__.py, line 96, in initialize AttributeError: 'Products.PageTemplates.ZopePageTemplate' module has no attribute 'initialize' When I remember right, this has been a bug in "PageTemplates" for a very short period. Updating your "PageTemplate" installation may solve the problem.
Dieter
participants (4)
-
Dieter Maurer -
Evan Simpson -
Ewoud de Boer -
R^3