[Zope] Re: Apache, VirtualHostMonster and complex rewriterule

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


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


> Gilles Lenfant wrote:
> > With the rewritelog, I can see that the regular expression searches
matches
> > in the *path* and not to the *URL* (as stated in mod_rewrite doc). Such
it
> > wont pass anything to the expected $1 and $2 :(
> > I got to find out another way to virtualhost dynamically.
>
>
> I am fairly certain that if you reverse the order of the AddModule lines
> for mod_proxy and mod_rewrite in your Apache config, you can rewrite
> based on full URLs.
>
> *Warning*: this will probably require you to edit *every* RewriteRule in
> your Apache config.
>
> Cheers,
>
> Evan @ 4-am
>

Evan,

Reversing the order of AddModule lines didn't change anything.
The RewiteRule reg expr is always compared with the path.
I spent hours reading again and again the mod_rewrite doc and didn't find
any solution.

Cheers,

--Gilles