Gave HTTP_HOST precedence for detecting request hostname.