HTTP_HOST, if present, should be used in preference to SERVER_NAME