First try to deal with baseuri without port in config file