Welcome! Log In Create A New Profile

Advanced

[BUG] auth_basic_user_file on 0.7.44

Jérôme Loyet
March 26, 2009 06:22PM
hi,

in 0.7.44 the auth_basic_user_file directive doesn"t seem to work
using relative path.

here is the part of the conf I used for testing.

location /c {
auth_basic "Authentication required";
auth_basic_user_file users.db;
}

location /d {
auth_basic "Authentication required";
auth_basic_user_file conf/users.db;
}

location /e {
auth_basic "Authentication required";
auth_basic_user_file /usr/local/nginx/conf/users.db;
}

Everything has been compiled all by default.
Here is debug lines I have with each case

/c
2009/03/26 23:19:28 [error] 12347#0: *1 open() "users.db" failed (2:
No such file or directory), client: 127.0.0.1, server: localhost,
request: "GET /c HTTP/1.1", host: "localhost:89"

/d
2009/03/26 23:19:54 [error] 12347#0: *2 open() "conf/users.db" failed
(2: No such file or directory), client: 127.0.0.1, server: localhost,
request: "GET /d HTTP/1.1", host: "localhost:89"

/e
2009/03/26 23:21:01 [debug] 12357#0: *1 rc: 0 user: "toto" salt: "btO5GKhJaEtBQ"
2009/03/26 23:21:01 [debug] 12357#0: *1 post access phase: 8
2009/03/26 23:21:01 [debug] 12357#0: *1 content phase: 9
2009/03/26 23:21:01 [debug] 12357#0: *1 content phase: 10
2009/03/26 23:21:01 [debug] 12357#0: *1 content phase: 11
2009/03/26 23:21:01 [debug] 12357#0: *1 http filename: "/usr/local/nginx/html/e"

I'll dig into :)

++ Jerome
Subject Author Posted

[BUG] auth_basic_user_file on 0.7.44

Jérôme Loyet March 26, 2009 06:22PM

Re: [BUG] auth_basic_user_file on 0.7.44

Jérôme Loyet March 26, 2009 08:03PM

Re: [BUG] auth_basic_user_file on 0.7.44

Igor Sysoev March 27, 2009 02:30AM

Re: [BUG] auth_basic_user_file on 0.7.44

Jérôme Loyet March 26, 2009 07:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready