Answer the question
In order to leave comments, you need to log in
Add basic auth for specific url?
Good afternoon!
There is a URL - std.freedombay.ru/?p=1
How can I add basic auth to it?
I understand that you need to explicitly specify it in location, but in what place?
location / {
try_files $uri $uri/ =404;
auth_basic "closed site";
auth_basic_user_file .htpasswd;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question