The following reply was made to PR mod_rewrite/1582; it has been noted by GNATS.
From: Todd Vierling <[EMAIL PROTECTED]> To: Dean Gaudet <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: mod_rewrite/1582: VirtualHosts no longer work as part of HTTP/0.9 request Date: Sat, 20 Dec 1997 15:36:55 -0500 (EST) On Sat, 20 Dec 1997, Dean Gaudet wrote: : > Under 1.2.x, the "outside virtual hosts" directives managed to catch : > requests without a virtual host, but under 1.3, the first vhost (not : > _default_!) catches them. So I had to find a way to make the first vhost : > intercept such unqualified requests, and redirect them. I used mod_rewrite. : : What do you mean "outside virtual hosts"? Those dirctives not encapsulated in <VirtualHost> sections. : Under 1.3 the first vhost on a : NameVirtualHost address catches any request which does not match any of : the other name-vhosts on that address; that's how it is documented. : NameVirtualHost a.b.c.d : <VirtualHost a.b.c.d> : ServerName some-arbitrary-name : RewriteEngine On : RewriteRule .* http://somewhereelse/upgrade.html [R] : </VirtualHost> : : <VirtualHost a.b.c.d> : ServerName www.customer1.com : ... : </VirtualHost> Odd; I did this before, and the second vhost was getting unqualified requests, so I went to do the whole hackaround that I did. Now it works. <grumble> I think it was because I was using names in the <VirtualHost> lines instead of IPs for all but the first one... hrm. But the new redocumenting of the bug (that mod_rewrite doesn't properly reconstruct the URI) is correct. ===== ===== Todd Vierling (Personal [EMAIL PROTECTED]; Business [EMAIL PROTECTED]) ===== == "There's a myth that there is a scarcity of justice to go around, so == that if we extend justice to 'those people,' it will somehow erode the == quality of justice everyone else receives." -- Maria Price
