Setting up hgwebdir on Windows/Apache

Paul Boddie paul.boddie at biotek.uio.no
Wed Nov 11 06:35:53 CST 2009


Dmitry Zanozin wrote:
> Hi everyone!
>
> I have questions about "setting up hgwebdir.cgi on
> Windows/Apache".
>
> 1) I cant setup the components to remove hgwebdir.cgi
> from urls. I've tried the ways, described at
> http://mercurial.selenic.com/wiki/HgWebDirStepByStep
> but it doesn't works:

This is very useful feedback as I'm going to review this page in the 
very near future. If I had full control over the Apache environment, I 
would probably choose a plain ScriptAlias directive and not the rather 
complicated recipe given on the Wiki. Untested and off the top of my 
head, something like this (just one line):

ScriptAlias /hg "C:/<ScriptPath>/hgwebdir.cgi"

It's true that URL matching is probably necessary where you only have a 
.htaccess file to play with, but I certainly wouldn't choose that 
approach to start with. Perhaps someone with more familiarity with that 
recipe can give the rationale for doing things that way.

Paul


More information about the Mercurial mailing list