[issue1274] "ssl required" while trying to push to https-repository

Andreas Piening mercurial-bugs at selenic.com
Sun Aug 24 09:53:31 CDT 2008


New submission from Andreas Piening <Andreas.Piening at rrz.uni-hamburg.de>:

I use mercurial 1.0.1-r2 and want to share my repositories with hgwebdir.cgi. I configured apache2 for ssl (https) and authentication and to 
use the hgwebdir.cgi for directory-listing and I rewrite anything to hgwebdir.cgi. ATM it looks like this:

<VirtualHost *:443>
       ServerName hg.myrepository.de
       DocumentRoot "/var/hg/hg.myrepository.de/"

       RewriteEngine On
       RewriteRule ^/(.*) /hgwebdir.cgi/$1

       <Directory "/var/hg/hg.myrepository.de/">
               DirectoryIndex hgwebdir.cgi
               AddHandler cgi-script .cgi
               Options +ExecCGI +FollowSymLinks
               AllowOverride None

               # Controls who can get stuff from this server.
               Order allow,deny
               Allow from all

               AuthUserFile /var/hg/hg.myrepository.de/.htpasswd
               AuthName "My Mercurial Repositories"
               AuthType Basic
               Require valid-user
       </Directory>

       <IfModule mpm_peruser_module>
               ServerEnvironment apache apache
       </IfModule>
</VirtualHost>

Since I want allways to use https for clone/pull AND push, I created a http-vhost which just redirects to this https-one. But I use https 
directly in my tests.

Everythin except pushing works out of the box:
I can access the hgwebdir and it shows up my testrepository.
The authentication works, and I can browse the repository and see changes that I've made on my testrepository directly on the filesystem.
I can clone the repository from https. The authentication comes up, works like a charm.

But when I do any sort of push, like
hg push https://hg.myrepository.de/testrepository/

I get this:
pushing to https://hg.myrepository.de/testrepository/
http authorization required
realm: My Mercurial Repositories
user: testuser
password:
searching for changes
ssl required

The message "ssl required" doesn't make much sense to me, since I use https and it works while accessing the repository for a clone or with 
the web-interface.

What can be wrong here?

Thank you in advance!

----------
messages: 6835
nosy: andreaspiening
priority: urgent
status: unread
title: "ssl required" while trying to push to https-repository
topic: hgweb

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1274>
____________________________________________________



More information about the Mercurial-devel mailing list