Unable to https push (or push at all by http)
Tim Boudreau
tboudreau at sun.com
Sun Jun 21 01:35:33 CDT 2009
Matt Mackall wrote:
>
> Why is it password protected??! Go back and read what I wrote. You've
> got a single equation with multiple unknowns: works(cgi) and works(ssl)
> and works(htaccess) and works(filesystem) and works(client) = False.
>
> Get push working _without .htaccess_. Take SSL out of the picture as
> well, as there seems to be some doubt about that.
>
> [web]
> push_ssl = False
> allow_push = *
>
> Does it work? Great, turn SSL back on. Does it still work? Great, turn
> on .htaccess. If it fails at that point, you can say with confidence
> that everything except auth is working fine.
>
> All that said, you probably need to specify a username in your URL.
>
Okay, I've completely disabled SSL for apache, removed all .htaccess and
.htpasswd files. My hgweb.config file now looks as follows:
[collections]
/ = /projects
[web]
style = gitweb
description = A place for my random creations
baseurl = /hg
push_ssl = False
contact = Tim Boudreau <tboudreau at sun.com>
allow_archive = bz2 gz zip war jar ear
allow_push = *
The include that allows apache to run hgwebdir now looks like this:
<LocationMatch /hg/.*?>y
PythonPath "sys.path + ['/home/www/hg_config/']"
PythonDebug On
SetHandler mod_python
PythonHandler modpython_gateway::handler
PythonOption SCRIPT_NAME /hg
PythonOption wsgi.application hgwebdir::test
Options ExecCGI FollowSymLinks Includes
Order deny,allow
Allow from all
</LocationMatch>
And here is the output I get from trying to do a straight push using http
(with or without username in the URL). Is there some other place push_ssl
can be being set to true? I tried both "false" and "False" just in case...
Tim:main tim$ hg out http://tim@timboudreau.org/hg/projects/main/
comparing with http://tim@timboudreau.org/hg/projects/main/
searching for changes
changeset: 1:70c296fce857
tag: tip
user: tboudreau at netbeans.org
date: Sat Jun 20 21:46:43 2009 -0400
summary: Adding bar
Tim:main tim$ hg push http://tim@timboudreau.org/hg/projects/main/
pushing to http://tim@timboudreau.org/hg/projects/main/
searching for changes
ssl required
If you feel so inspired, you can try it yourself - it's wide open for the
moment - http://timboudreau.org/hg/
Thanks,
Tim
--
View this message in context: http://www.nabble.com/Unable-to-https-push-%28or-push-at-all-by-http%29-tp24129115p24131954.html
Sent from the Mercurial mailing list archive at Nabble.com.
More information about the Mercurial
mailing list