[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#272799: It's not a bug, it's a feature



Hi!

I've ran into the same problem today and found a workaround for it.
Instead of placing it in the server config context, encompass it in a
Directory directive, like this:

<Directory />
	RewriteEngine On
	RewriteCond %{HTTP_USER_AGENT}  ^Lynx.*
	RewriteRule ^.*                 http://www.google.com/
</Directory>

The reason this is happening is that Apache will not use the Rewrite
directives for any connections coming in on IPs used in NameVirtualHost
directives. You can look at this as at a feature, though in my book it's
still a bug. :-P

-- 
George Cristian Birzan			gcbirzan (at) wolfheart (dot) ro
Most of our imports come from other countries.
		-- George W. Bush



Reply to: