>>>>> "Rusty" == Rusty Foster <[EMAIL PROTECTED]> writes:

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.  So the "problems"
you're not seeing are probably from the people out there that can't
get to your site to report the problems. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to