francis at daoine.org
Thu Apr 7 21:00:58 MSD 2011
On Thu, Apr 07, 2011 at 11:52:09PM +0800, lhmwzy wrote:
> location ^~ /ks/admin
> satisfy any;
> allow 10.68.136.241/32;
> allow 10.66.23.80/32;
> deny all;
> auth_basic "passwd";
> auth_basic_user_file ksadminpasswd;
> when IP is not 10.68.136.241 or 10.66.23.80, people can still visit
> /ks/admin,not prompt for user and passwd.
When I test that, I get the http 401 password challenge that I expect.
So I don't see the problem.
What does your debug log say?
Francis Daly francis at daoine.org
More information about the nginx