[Zope] zope + apache + rewrite
Ruslan Spivak
alienoid@is.lg.ua
Fri, 11 Apr 2003 12:11:29 +0300
Jamie Heilman wrote:
>Ruslan Spivak wrote:
>
>
>><VirtualHost www.is.lg.ua:5000>
>> ServerName www.is.lg.ua
>> RewriteEngine On
>>
>>
># next 2 lines added to omit http://www.is.lg.ua:5000/chat from Zope's influence
>RewriteCond %{REQUEST_URI} ^/chat
>RewriteRule .* - [L]
>
>
>> RewriteRule ^/(.*) http://192.168.1.1:6080/VirtualHostBase/ http/www.is.lg.ua:5000/is/VirtualHostRoot/$1 [L,P]
>> ProxyVia on
>></VirtualHost>
>>
>>
>
>In a production environment, I also suggest adding "/_"
>"/VirtualHostBase/" and "/VirtualHostRoot/" to your set of regular
>expressions which dictate what should not be allowed to be sent to
>Zope via the request URI. See the mailing list archives for more on
>why. See the apache mod_rewrite docs for how to implement it.
>
>
>
Thanks a lot for your answer, but when i added:
# next 2 lines added to omit http://www.is.lg.ua:5000/chat from Zope's influence
RewriteCond %{REQUEST_URI} ^/chat
RewriteRule .* - [L]
ScriptAlias /chat /cgi-bin
I get:
Not Found
The requested URL /chat was not found on this server.
Can you tell me about this something?
and could you describe more precisely using '/_' in production? (where to insert that?)
Thanks a lot for your help.
Ruslan