atom feed9 messages in ru.sysoev.nginxRe: Setting up HTTP Basic Authorisation
FromSent OnAttachments
T GillettDec 6, 2006 3:02 am 
Igor SysoevDec 6, 2006 3:15 am 
T GillettDec 6, 2006 4:11 am 
Igor SysoevDec 6, 2006 4:23 am 
T GillettDec 6, 2006 4:43 am 
Igor SysoevDec 6, 2006 5:00 am 
T GillettDec 6, 2006 5:15 am 
Igor SysoevDec 6, 2006 5:40 am 
T GillettDec 6, 2006 12:54 pm 
Subject:Re: Setting up HTTP Basic Authorisation
From:Igor Sysoev (is-G@public.gmane.org)
Date:Dec 6, 2006 5:00:41 am
List:ru.sysoev.nginx

On Wed, 6 Dec 2006, T Gillett wrote:

Igor Sysoev <is@...> writes:

Could you make a debug log ?

Hi Igor Thanks for the response.

Running the perl crypt gives: # perl -le 'print crypt("test", "cg")' cgsk91HyOZHGE

This is the way I have set up the error logging. Is this correct for debug log as you have asked?

Yes, the configuration is correct, however, nginx was not built with debug logging. You should rebuild it using

./configure --with-debug ...

Igor I loaded nginx as a package from the Unslung ipkg feed, so I didn't actually build it. I don't have a cross development environment for the NSLU2 so doing a build is a bit of a problem at the moment.

If the htpasswd file is OK, and the nginx.conf file is OK, is there anything else that needs to be set up for the http basic authorisation to work?

It seems I found the bug. If the "test:cgsk91HyOZHGE" is the single line in th efile and has no the carridge return or the line feed characters (if you edit file in the joe editor), then nginx does not understand the hash.