Getting "ssl required" when using an https URL
Pazu
pazu at pazu.com.br
Fri Mar 7 06:17:52 CST 2008
On Thu, Mar 6, 2008 at 11:46 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> Are you sure you've configured hg on the server side to allow push over
> https? You have to explicitly enable that.
Really? I thought I had to explicitly enable push over plain http --
that by default, hgweb would only accept push over https. Here's the
portion of my lighttpd.conf relevant to hg:
$SERVER["socket"] == "hg.pazu.com.br:443" {
ssl.engine = "enable"
ssl.ca-file = "/xxx/xxx/ssl/cacert.crt"
ssl.pemfile = "/xxx/xxx/ssl/hg.pazu.com.br.pem"
}
$HTTP["host"] == "hg.pazu.com.br" {
server.document-root = "/usr/lib/cgi-bin"
cgi.assign = (".cgi" => "")
url.rewrite-once = ("^([/?].*)?$" => "/hgwebdir.cgi$1")
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/xxx/hg.passwd"
auth.require += ( "" => (
"method" => "basic",
"realm" => "Mercurial Repo",
"require" => "valid-user"
))
}
hgwebdir.cgi is in /usr/lib/cgi-bin, with hgweb.config in the same dir:
[collections]
/path/to/hgrepos = /path/to/hgrepos
[web]
style=gitweb
-- Pazu
More information about the Mercurial
mailing list