Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
    
You should accept your own answer to improve your accept rate and to remove the question from the "Unanswered Questions" list. –  Martin Geisler Dec 24 '11 at 23:41
add comment

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 http://mercurial.selenic.com/wiki/PublishingRepositories

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
add comment

Your Answer

 
discard

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.