[Zope] Rewriting URLs - Call for precisions.

andre borelan at wanadoo.fr
Sat Feb 7 11:19:44 EST 2004


Hello,

Following the example in the Zope Book, is did the following.

Configuration :

Windows XP
Service Pack 1a (needed by apache 2.0.48)
Apache 2.0.48
Zope 2.7.0RC2
No network connection
Fresh install, no products added.

Zope :

A Folder with id 'demosite' added at Zope root and containing the 
autogenerated index_html object
A VHM with id 'VHM' added at Zope root,

a host created in Windows etc/hosts file
127.0.0.1   www.example.com

Apache :

Apache 2.0.48 httpd.conf configured with the following

NameVirtualHost *
<VirtualHost *>
ServerName www.example.com
RewriteEngine On
RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.example.com/demosite/VirtualHostRoot/$1 

</VirtualHost>

when i try to access www.example.com,
the index_html is called but the url appearing in the navigator's url 
box is :
http://127.0.0.1:8080/VirtualHostBase/http/www.example.com/demosite/VirtualHostRoot/

How can i modify the url ?

TIA

André




More information about the Zope mailing list