Posts tagged 'nginx'

Password protecting folders with nginx

If you need to password protect a folder using nginx here’s how. In this example we’re gonna password protect the /admin folder, trying to access the admin directory will prompt the user with a basic authentication dialog, and will be challenged against the created password file.

Edit your ...