[BUG] auth_basic_user_file on 0.7.44

Jérôme Loyet jerome at loyet.net
Fri Mar 27 01:22:02 MSK 2009


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





More information about the nginx mailing list