tested & fixed the usage of hostname instead of the full URL +  updated doc