Create a Username/Password which will be stored in ‘useraccess’, a file I just made up. htpasswd -b -c useraccess username password -b: allows password in command line rather than prompt -c: creates new passwd file, or rewrites and appends if the file already exists. Now in the nginx config, under: server { location /protectedlocation { [...]
Categories
