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 6224761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:43:32+00:00 2026-05-24T08:43:32+00:00

We installed Mercurial on the server which we use to synchronize developer’s local repositories.

  • 0

We installed Mercurial on the server which we use to synchronize developer’s local repositories. We use stand alone mercurial web server (hg serve), what we want is to grant access to the web server only to the authorized users, right now it is accessible to all.

Is there any way to configure authorization for Mercurial stand alone web server?

In the configuration file (hgrc) there is a section called [auth] where a list of users can be defined, but it seems it is used for something else, not for web server.

  • 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-24T08:43:33+00:00Added an answer on May 24, 2026 at 8:43 am

    hg serve allows you to set up authorization rules in [auth], but doesn’t handle authentication on its own. It should be provided by a web server.

    You have at least these two options for authentication handling:

    1. Configure the hgweb script with Apache, lighttpd, or another web server of your choice.
    2. Put hg serve behind nginx.

    Edit. Here’s an excerpt from my nginx config file (requests auth for both read and write):

    location / {
        auth_basic            "hg-server";
        auth_basic_user_file  /path/to/htpasswd/file;
        proxy_pass            http://127.0.0.1:8000;
        proxy_set_header      REMOTE_USER $remote_user;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Rhodecode (mercurial server) on an Ubuntu machine. I specified the repository
I installed mercurial-server on one of my machines, cloned my project there, it has
I have successfully installed mercurial on media temple grid server. But I can not
I'm trying to setup an IIS server to expose my Mercurial repositories. I've followed
I installed Mercurial correctly on the local network and now I have hgusers and
My mercurial repository works correctly in trac when I use the tracd server. However,
I have installed Mercurial as a Python package. Now I want TortoiseHg to work
I have a server with ssh, that I want to use as a central
I installed Mercurial via both .dmg and using the MacPorts command sudo port install
I've installed the HgEclipse plugin for Mercurial integration in Eclipse. I have an existing

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.