Basic authentication on Nginx
Category:
Last Updated: 2021/12/13 12:40:54
Just you create a htpasswd
and write this in a server
block.
auth_basic "Restricted";
auth_basic_user_file /path/to/.htpasswd;
1
2
2
Category:
Last Updated: 2021/12/13 12:40:54