For ssl you need to add below line to apache conf for ssl host: SetEnv HTTPS on # file .hg/hgrc # to allow push [web] push_ssl = false allow_push = lz