Use HTTP_X_FORWARDED_HOST if available