Welcome! Log In Create A New Profile

Advanced

Re: Password-protected dirs working but reporting unexpected errors

July 09, 2009 03:58AM
On Wed, Jul 08, 2009 at 09:42:05PM -1000, TinyApps.Org wrote:

> I sent this out a week ago and received no reply,
> so I am trying a second and final time to see if
> anyone can assist:
>
> Password protected directories are working fine,
> but when a legitimate user logs in, the following
> appears in the error log:
>
> [error] 3876#0: *12 no user/password was provided for basic
> authentication
>
> despite the fact that the username and password
> *were* supplied, and access was granted.

The HTTP Basic authentication works as following:
*) A browser requests a page without user/password.
*) A server response with 401 page, sending realm as well.
At this stage the 401 code appears in access_log and the message
"no user/password ..." appears in error_log.
*) The browser shows a realm/login/password prompt.
*) If a user will press cancel, then the browser will show the received
401 page.
*) If the user enters login/password, then the browser repeats the request
with login/password.

Then until you will exit the browser, it will send these login/password
with all requests in protected hierarchy.

> A bad username/password produces the expected error:
>
> [error] 3876#0: *12 user "whatever" was not found in "/etc/nginx/htpass"
>
> Has anyone else seen this or have any idea why such
> an error would be triggered?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Password-protected dirs working but reporting unexpected errors

TinyApps.Org July 09, 2009 03:42AM

Re: Password-protected dirs working but reporting unexpected errors

Igor Sysoev July 09, 2009 03:58AM

Re: Password-protected dirs working but reporting unexpected errors

TinyApps.Org July 09, 2009 10:25AM

Re: Password-protected dirs working but reporting unexpected errors

Igor Sysoev July 09, 2009 10:48AM

Re: Password-protected dirs working but reporting unexpected errors

TinyApps.Org July 09, 2009 11:20AM

Re: Password-protected dirs working but reporting unexpected errors

Igor Sysoev July 09, 2009 03:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready