Best way of having a password protected directory in nginx?
I'm transfering to nginx and had a directory with a password using .htaccess and .htpasswd. How can I achieve something like this with nginx? I'm storing them on the website because I need them to be easily downloadable with a link.
I recon I could store those files outside of the website and make something that downloads them using php. This way I can also implement a password.
Submitted July 12, 2017 at 11:58AM by florensie
via reddit http://ift.tt/2sQGt8D