Securing nginx folders
December 22, 2012
I wanted to have a folder on my nginx webserver that prompts for a username/password before showing any html pages inside that folder.
Here's the existing location declaration in the nginx config:
location / {
root /home/drumcoder/web/drumcoder.co.uk;
index index.html;
}
Here's the new declaration that includes the secure folder
location …


