Nginx Basic Auth config
Configure location:
location / {
auth_basic "closed site";
auth_basic_user_file htpasswd;
}
Create password file:
yum install httpd-tools</pre>
New file:
htpasswd -c htpasswd-file "username"
New password:
Append user to existing file:
htpasswd htpasswd-file "username"