Nginx Basic Auth

Nginx Basic Auth

server{
		#...
		location /admin{
			auth_basic "Secure area";
			auth_basic_user_file /etc/nginx/.htpasswd;
		}
	}

For .htpasswd (username and password) generation you can use the following url Htpasswd Generator