[Zope] Re: Apache, VirtualHostMonster and complex rewriterule

Gilles Lenfant gilles@pilotsystems.net
Mon, 27 Jan 2003 21:33:55 +0100


----- Original Message -----
From: "Evan Simpson" <evan@4-am.com>
To: <zope@zope.org>
Cc: "Ed Leafe" <ed@leafe.com>; "Gilles Lenfant" <gilles@pilotsystems.net>
Sent: Monday, January 27, 2003 7:24 PM
Subject: [Zope] Re: Apache, VirtualHostMonster and complex rewriterule


> Ed Leafe wrote:
> >     Look into RewriteCond - it supports conditional based upon the
> > host.  In you case, something like:
>
> Ah, yes.  Better yet, some variant of the following may work:
>
> RewriteCond %{HTTP_HOST} ^(.*)\.myhost\.com
> RewriteRule ^(.*)
>
http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/%1/VirtualHostRoo
t/$1
> [P,L]
>
> Cheers,

Bingo !

Exactly what I needed !
Many thanks Evan and Dieter for the enlightenments.

--Gilles