Hi, all
I have some problem with my nginx
I just could not restrict files in certain floder, as follows, i put the settings to nginx.conf
[code]
location ~ ^/restrict/
{
auth_basic "STATISTIC";
auth_basic_user_file /usr/local/nginx/conf/pwfornginx
}
[/code]
the folder /restrict/ is restricted perfect, however, files in the folder can still be accessed,
/restrict/somefile.php
What's the matter? any ideas?
Thanks in advance.
Regards,
gavin