HTTP basic authentication will allow you to secure parts (or all) of your website with a username and password without the trouble of PHP or Javascript. This will work with any Nginx server. Installation We will be using the command htpasswd to make username and password pairs. apt install apache2-utils The apache utils include a small username-password pair encryption tool. Like the other tutorials on this site, this tutorial is for Nginx, not for Apache servers.