I try with same result
location /admin {
try_files $uri $uri/ =404;
auth_basic "Restricted";
auth_basic_user_file /srv/http/admin/.htpasswd;
}
Mind that i got auth request on admin/ not if i request a php file in it
location /admin {
try_files $uri $uri/ =404;
auth_basic "Restricted";
auth_basic_user_file /srv/http/admin/.htpasswd;
}
Mind that i got auth request on admin/ not if i request a php file in it