Update Password protect instance with nginx
@@ -12,6 +12,12 @@ Generate password file and add user1 - you will be prompted for the password to
|
||||
sudo htpasswd -c /etc/nginx/.htpasswd user1
|
||||
```
|
||||
|
||||
To add another user, run the same command but omit the -c. Example:
|
||||
|
||||
```
|
||||
sudo htpasswd /etc/nginx/.htpasswd user2
|
||||
```
|
||||
|
||||
Modify the site's configuration file. We have used default in other areas of the wiki, but your own may vary
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user