when I access http://10.66.23.102/bxzx/xinxi/ from 10.68.49.210,nginx
says “403 Forbidden”.
I think the rule checkorder is
first “allow 10.68.49.21;”
then " auth_basic “need authried”;auth_basic_user_file passwd;"
last “deny all”
So when I access http://10.66.23.102/bxzx/xinxi/ from
10.68.49.210,nginx should prompt me to input username and password.
Am I right?
says “403 Forbidden”.
I think the rule checkorder is
first “allow 10.68.49.21;”
then " auth_basic “need authried”;auth_basic_user_file passwd;"
last “deny all”
So when I access http://10.66.23.102/bxzx/xinxi/ from
10.68.49.210,nginx should prompt me to input username and password.
Am I right?
Also I know the config
location ~ xinxi {
satisfy any;
allow 10.68.49.21;
auth_basic “need authried”;
auth_basic_user_file passwd;
deny all;
}
can do the job well.
On Tue, Sep 16, 2008 at 10:59:50PM +0800, lhmwzy wrote:
when I access http://10.66.23.102/bxzx/xinxi/ from 10.68.49.210,nginx
location ~ xinxi {
satisfy any;
allow 10.68.49.21;
auth_basic “need authried”;
auth_basic_user_file passwd;
deny all;
}
can do the job well.
I think when client ip address isn’t 10.68.49.21,then should prompt
the enter username and password.if the username and password isn’t
right,the last should deny access or display not authroised.
On Tue, Sep 16, 2008 at 11:35:22PM +0800, lhmwzy wrote:
I think when client ip address isn’t 10.68.49.21,then should prompt
the enter username and password.if the username and password isn’t
right,the last should deny access or display not authroised.
This is controlled by “satisfy any|all” directive.