9951 explained code solutions for 126 technologies


nginxBasic HTTP authentication


location / {
  auth_basic "No no no";
  auth_basic_user_file /dir/.htpasswd; 
}ctrl + c
auth_basic

message to display when auth dialog pops up

auth_basic_user_file

specifies user/password file path

/dir/.htpasswd

read how to create htpasswd format file