change url to hostname and add protocol attribute to configuration