HTTP and HTTPS setup improvment