Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6359689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:33:08+00:00 2026-05-24T23:33:08+00:00

I am refering to HgWebDirStepByStep , and trying to setup it in Windows machine

  • 0

I am refering to HgWebDirStepByStep, and trying to setup it in Windows machine (Windows 7).

  1. I can no longer download hgwebdir.cgi from http://www.mercurial-scm.org/repo/hg-stable/raw-file/tip/hgwebdir.cgi. The link is dead.
  2. I was told to modify hgwebdir.cgi content to sys.path.insert(0, "c:/dev/Mercurial/lib"), but I didn’t found any folder in my latest Mercurial installation. I can only see there is a zip file on it.

Seems the information on the tutorial is pretty outdated. Any good guides for me to setup Mercurial server in Windows machine? As there is already an Apache in the server, I would like to make use of the Apache instead of IIS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:33:08+00:00Added an answer on May 24, 2026 at 11:33 pm

    By collecting information bits and bytes from every corners, I would like to summary the steps to setup mercurial server using Apache, with authentication feature.


    I install mercurial-1.9.1.win-amd64-py2.6.exe


    Add the following content to C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf

    # Some comment so that you can find these settings later
    ScriptAliasMatch ^/hg(.*) "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/hg/hgwebdir.cgi$1"
    <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/hg">
      Options ExecCGI FollowSymLinks
      AuthType Basic
      AuthName "AuthName for Mercurial"
      AuthUserFile "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/hg/passwd.txt"
      <Limit GET POST>
          require valid-user
      </Limit>
    </Directory>
    

    Create the following 4 files

    C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\hg\hgwebdir.cgi (Download from http://makinggames.ca/wp-content/uploads/2010/05/hgwebdir.txt and rename it to hgwebdir.cgi)

    C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\hg\hgweb.config with the following content.

    [paths]
    dummy1 = d:/mercurial-repo/dummy1
    dummy2 = d:/mercurial-repo/dummy2
    

    c:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\hg\passwd.txt (Refer to this guide http://sniptools.com/vault/windows-apache-and-htaccess-authentication)

    c:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\hg.htaccess (Just leave the file empty)


    Initialize repositories in

    D:\mercurial-repo\dummy0
    D:\mercurial-repo\dummy1
    

    This can be done using TortoiseHg, by applying “Create Repository Here”, through right click on folder D:\mercurial-repo\dummy0 and D:\mercurial-repo\dummy1


    Access the mercurial through http://your-server:81/hg/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi after refering to http://www.mono-project.com/Embedding_Mono i can call methods from managed code by using
Refering to http://www.devx.com/tips/Tip/13291 , it says that I can use memcpy with the size
I have 2 questions to ask here. I am refering http://www.broculos.net/en/article/android-101-how-create-stackview-widget to create a
I'm wondering how to create windows like these alt text http://img824.imageshack.us/img824/997/this.jpg I'm refering to
I am refering to article at http://www.wintoolzone.com/articles/AuthoringStackWalkerForX86.pdf I am using VC++ 2008. I realize
I am refering to http://developer.android.com/reference/android/app/Activity.html . I have an activity which can be interrupted
here is a site i'm refering to: http://www.graphicfirm.com/index.php if you scroll down to the
With Mirah, I am refering to the JVM language: http://www.mirah.org/ The only useful documentation
i am trying to display google map on Android refering to this tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html
I tried a file upload to my amazon s3 refering this tutorial http://www.anyexample.com/programming/php/uploading_files_to_amazon_s3_with_rest_api.xml But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.