[Zope] Rewriting URLs - Call for precisions.

andre borelan at wanadoo.fr
Sun Feb 8 12:30:18 EST 2004


Now i'm using _vh_.
... VirtualHostRoot/_vh_something ...
so when i call
http://www.example.com/my_page,
the virtual url in the request is as follow :

VIRTUAL_URL	'http://www.example.com:8080/something/my_page'

but is it possible to make the browser display the path ?

André

Dieter Maurer wrote:

> andre wrote at 2004-2-7 12:19 -0400:
> 
>>...
>>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>
> 
> 
> Your rewrite rule lacks a trailing "[P]".
> 
> Lacking this "[P]", Apache apparently has treated it as a
> "redirect". That's why you see this URL in your browser.
> 




More information about the Zope mailing list