0
votes
1answer
84 views

NGINX “password” protect directories

I have an nginx server. I'd like to have directories available online but only if a certain password is supplied. Would it be bad to do something like: location /password=mysuperstrongpassword { ...
4
votes
1answer
219 views

Does nginx have a directive analogous to Apache's <Directory>?

I'm trying to set up an nginx server to replace our current setup based on Apache. Our users have password protected directories (with directives in .htaccess files) which we need to keep protected in ...
4
votes
1answer
2k views

Does nginx auth_basic work over HTTPS?

I've been trying to setup a password protected directory in a SSL website as follows: /etc/nginx/sites-available/default server { listen 443: ssl on; ssl_certificate ...