1

During development, I would like to block access to the entire site. I created a .htpasswd file and I can't work out where to add the following two lines:

auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;

Any tip is much appreciated!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.