Fix url syntax for userid:password; get vhost from url path component.