Troubles with http basic authentication.
Matteo Niccoli
matteo.niccoli at staff.dada.net
Fri Sep 28 19:41:32 MSD 2007
Hi,
I'm trying to enable basic authentication for a location like this:
location /admin {
auth_basic "Restricted";
auth_basic_user_file /tmp/.trypass;
index index.php5;
allow 192.168.1.1;
deny all;
}
When I try to connect to this location, if I use:
http://$servername/admin/ and I press Esc two times, nginx give me
out: 401 Authorization Required
If I try to connect to:
http://$servername/admin/index.php5 and I press Esc two times,
nginx allow me the access also if I don't have insert username and
password.
It's my mistake or it's a bug?
Thanks!
More information about the nginx
mailing list