Daniel Friesen wrote:
How the shared host was setup to point two domains at
the site wasn't even
mentioned iirc.
Frankly it's even possible that the host themselves is actually taking
whatever 'extra domain' you give them and doing a dumb 301 or frame
redirect instead of just doing what a ServerAlias would do.
Btw, we use HTTP_HOST first not SERVER_NAME.
That's true for 1.18 but not for 1.17
http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_17/phase3/includes/…
Prefering SERVER_NAME to HTTP_HOST seems the sensible thing to do, as
then if you have "UseCanonicalName On" you always get the right server
name, even in the case of malicious user requests.
The order of WebRequest::detectServer() seems to have been copied from
Installer::envRequestServer() both edits by Tim (r90105, r90194).
Tim, was there any reason to have HTTP_HOST in preference to SERVER_NAME?
I see there could be problems with a truncated SERVER_NAME variable with
lighttpd (r83847) but that seems taken care by the function already.