Why do users get an HTTP 404 error when attempting to clone a Mercurial repository over HTTP

apache-2.2clonehttpmercurial

The repository is hosted on my PC. I use Apache with WAMP and TortoiseHG.

I have setup users and passwords and they are able to browse the repository in their browsers after entering their usernames and passwords.

The problem is that, when they try to clone the repository, they get an HTTP404 file note found error.

However, I can clone the repsoitory on my own PC using their credentials.

The problem must lie somehwere with the mercurial setup.

Best Answer

Solved

In the hgweb.cgi file, I replaced:

[web]
C:\CentralRepo\ = C:\CentralRepo\

with:

[paths]
Reports = C:\CentralRepo\Reports\

These two are supposed to be alternatives, but only the second option worked for me.