There are situations when you are in need of password protection for staging apps. For example, you need to show something only to your client. In this quick tutorial, I will show you how to password protect your application in Nginx using htpasswd
Generate the htpasswd file. I assume your application is placed in its home folder.