authentication failure

Adrian Klaver adrian.klaver at aklaver.com
Tue Sep 15 13:56:27 UTC 2015


On 09/14/2015 10:27 AM, Kemin Zhou wrote:
> So what is running at http://localhost/hg/proj?
>      hgweb.cgi under apache2
>      I looked at the source code in mercurial, and could not get any clue.
>      There is no apache2 error message when this happened.
>
> In other words what Web server is serving up the repo?
>      I am using the apache2.  Very strange.  I am using Ubuntu which
> uses sudo.
>     When I start the apache2 server, I got 5 processes with slight
> different uid.  This could be
>     the source of the trouble.
> root     12013     1  0 Sep13 ?        00:00:02 /usr/sbin/apache2 -k start
> www-data 12016 12013  0 Sep13 ?        00:00:00 /usr/sbin/apache2 -k start
> kzhou    12017 12013  0 Sep13 ?        00:00:02 /usr/sbin/apache2 -k start
> www-data 12018 12013  0 Sep13 ?        00:00:19 /usr/sbin/apache2 -k start
> www-data 12019 12013  0 Sep13 ?        00:00:18 /usr/sbin/apache2 -k start
>
>
> Also, how was it setup?
>
> in the /etc/apache2 directory
> I have the apache2.conf file
> I used the <Location /hg>
> AuthType Basic
> Require valid-user
>
>   ScriptAlias /hg /usr/lib/cgi-bin/hgweb.cgi

All I can do is point you at:

https://mercurial.selenic.com/wiki/CGIinstall

> Kemin Zhou 858 771-3269
>

-- 
Adrian Klaver
adrian.klaver at aklaver.com



More information about the Mercurial mailing list