detect default host from BASE_URL