Setting up HTTP Basic Authorisation

Igor Sysoev is at rambler-co.ru
Wed Dec 6 16:01:04 MSK 2006


On Wed, 6 Dec 2006, T Gillett wrote:

> Igor Sysoev <is at ...> writes:
>
>>>>
>>>> Could you make a debug log ?
>>>>
>>>> Igor Sysoev
>>>> http://sysoev.ru/en/
>>>>
>>>>
>>>
>>>
>>> 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.


Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list