On 7 Apr 2000, Randal L. Schwartz wrote:

> Rusty> NameVirtualHost 216.181.35.174  # IP of www.kuro5hin.org
> 
> Rusty> # Redirect all hostless requests to www VHost
> Rusty> <VirtualHost 216.181.35.174>
> Rusty>     ServerName kuro5hin.org
> Rusty>     Redirect permanent / http://www.kuro5hin.org/
> Rusty> </VirtualHost>
> 
> Rusty> # Proper URI for www.kuro5hin.org
> Rusty> <VirtualHost 216.181.35.174>
> Rusty>   ServerName www.kuro5hin.org
> Rusty>   ...etc...
> Rusty> </VirtualHost>
> 
> Rusty> This way, people who come in to http://kuro5hin.org/ get redirected
> Rusty> right off the bat, and so far this seems to have solved the problem.
> 
> Except that this requires HTTP/1.1.  Anyone that doesn't send the
> "host:" header goes into a permanent redirect loop.  [...]

Not if you do it right[tm] and have the "real" host be the default.


 - ask

-- 
ask bjoern hansen - <http://www.netcetera.dk/~ask/>
more than 70M impressions per day, <http://valueclick.com>

Reply via email to