Thank you very much, i include a copy of the php block into the password protected one. all is ok thanksby haiku - How to...
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 itby haiku - How to...
Hello, I notice a big bug (or is it me) using nginx/1.16.1 (on Arch) and auth_basic which don't protect the whole directory using a simple location /admin { auth_basic "Restricted"; auth_basic_user_file /srv/http/admin/.htpasswd; } When i go to admin/index.php i got a auth request. But, if i have a admin/test.php file, i can request the file without any auth requby haiku - How to...
Hello, I log 401 errors in a file to use it with fail2ban. I noticed that on the first login/passwd prompt i got a 401 error, even if i have enter a correct login/password or push cancel. I don't think this behavior is correct. Is it a bug or did i miss something ? I run nginx/1.16.1 Cheersby haiku - How to...