Try to set HTTP_HOST if not defined in $_SERVER