stevenkohlmeyer.com
Password protecting nginx » Steven Kohlmeyer
Create a Username/Password which will be stored in ‘useraccess’, a file I just made up. htpasswd -b -c useraccess username password [crayon-5cba1d647eb33051399190/] Now in the nginx config, under: [crayon-5cba1d647eb3d796823487/] [crayon-5cba1d647eb41086168751/] [crayon-5cba1d647eb43939249451/] auth_basic "Message box title of password prompt"; auth_basic_user_file /path/to/useraccess; [crayon-5cba1d647eb46007551611/] Related