Hi,
I set up a repository on another computer for which I want to start cloning over http. I set up apache with the directive as stated below, and in the directory I have my index.cgi file as provided by mercurial. I can clone a repository just fine if it's empty, but if it contains files, I get a 500 error. Looking at the error logs, I see the following:
malformed header from script. Bad header=1 changesets found: index.cgi
To me, this sounds like a permissions issue, but everything is 775 (we're behind several firewalls) and everything is accessable from index.cgi over a browser.
I'm out of options, is there anything I'm missing?
Apache config:
Alias /hg /base/src/hg_cgi
<Directory "/base/src/hg_cgi">
DirectoryIndex index.cgi
AddHandler cgi-script .cgi
Options ExecCGI
Order allow,deny
Allow from all
</Directory>