Setting up hgwebdir on Windows/Apache
Paul Boddie
paul.boddie at biotek.uio.no
Wed Nov 11 08:43:52 CST 2009
Dmitry Zanozin wrote:
> Thanks a lot! That works!
> I've replaced 2 lines of Apache httpd.conf:
>
> ...
> Alias /hg "C:/<MyPath>"
> ScriptAliasMatch ^/hg(.*) "C:/<ScriptPath>/hgwebdir.cgi$1"
> ...
>
> with your one and the problem was solved!
I'm not even sure you need the Directory directive, either. I think that
ScriptAlias removes the need to declare a CGI handler, which is mostly
what the Directory section does. See these pages for details:
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias
http://httpd.apache.org/docs/2.2/howto/cgi.html
Of course, if you have other .cgi scripts in the script directory, you
will need the Directory directive for those unless you start using
ScriptAlias for them as well.
Paul
More information about the Mercurial
mailing list