Gregory (Grisha) Trubetskoy writes:
> I think a properly designed site should insist on its host name, i.e. "I 
> see you think I'm gobbledygook.bleh, but I'm going to redirect you to 
> http://www.modpython.org/ because that is my true name". This is very 
> common with sites that respond to both www.site.com and site.com, but 
> insist on only one of those by redirecting.

As I said in my previous email to the list, I *think* if you use
virtual hosts and your "real" sites are NOT the first real host, then
you are forcing clients to speak HTTP/1.1, thus forcing the Host
header to be sent.  If you then put in your first, default
virtualhost:

  RedirectPermanent / http://realserver/

then you protect yourself from "gobbledygook.bleh" because that will
be sent to the default virtualhost which will redirect.

Right?  If so, a bit convoluted and not accessible to the novice.
Perhaps a "Tips & Tricks" chapter to the manual?


Daniel Popowich
---------------
http://home.comcast.net/~d.popowich/mpservlets/

Reply via email to