Basic authentication on Nginx

Category:
Tags:
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

Category:
Tags:
Last Updated: 2021/12/13 12:40:54
Copyright © Web Ninja All Rights Reserved.