[Zope] zope + apache + rewrite

Jamie Heilman jamie@audible.transient.net
Fri, 11 Apr 2003 01:47:07 -0700


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.

-- 
Jamie Heilman                   http://audible.transient.net/~jamie/
"Paranoia is a disease unto itself, and may I add, the person standing
 next to you may not be who they appear to be, so take precaution."
						-Sathington Willoughby