Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted


In the hgweb.cgi file, I replaced:

C:\CentralRepo\ = C:\CentralRepo\


Reports = C:\CentralRepo\Reports\

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

share|improve this answer

Is your apache accessible via the web (you can check using google translation services to access your machine)?

Do you use hgweb.cgi? Are there any restrictions set?

I remember that for cloning and pushing you need to explicitely set the permissions for hgweb.cgi. See

share|improve this answer
Hi @Stephan, I do use hgweb.cgi. Thanks for your response. Please see my answer. – systemovich Feb 3 '11 at 6:47
Great to see that I could be of help in a way :) – Stephan Feb 4 '11 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.