restrict access problem

lhmwzy lhmwzy at
Tue Sep 16 18:56:04 MSD 2008

I want to do a restrict access for URI contains xinxi,I do as follow:

    location ~ xinxi {
                auth_basic "need authried";
                auth_basic_user_file passwd;
                deny all;

when I access from,nginx
says "403 Forbidden".
I think the rule checkorder is
first "allow;"
then " auth_basic "need authried";auth_basic_user_file passwd;"
last   "deny all"
So when I access from,nginx should prompt me to input username and password.
Am I right?

More information about the nginx mailing list