XAMPP Mercurial for Windows Apache & # 8594; HgWebDir.cgi Script Error
I am trying to post multiple existing mercury repository addresses though XAMPP Apache via CGI Python script hgwebdir.cgi ... as in this tutorial https://www.mercurial-scm.org/wiki/HgWebDirStepByStep
I am getting the following error from apache error logs when I try to access the repository path in the browser:
Premature end of script headers: hgwebdir.cgi
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] Premature end of script headers: hgwebdir.cgi
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] File "C:/hostdir/xampp/cgi-bin/hg/hgwebdir.cgi", line 39\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] test = c:/hostdir/mercurial/test/\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] ^\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] SyntaxError: invalid syntax\r
This is the path to the file where the script crashed (and if I delete it I get a blank HTML page shown with no visuals):
[paths]
test = c:/hostdir/mercurial/test/
/hg = c:/hostdir/mercurial/**
/ = c:/hostdir/mercurial/
Does anyone know me?
a source to share
This is just a wild ass, but I suspect line endings in your ini file might be messed up. You can try opening your ini file in something like VIM and see if there are any scared characters in there. It sucks that in 2010 we still have to consider these things, but that's what it is. / Shrug
a source to share