server {
    listen 80;
    server_name {{ domain_name }};

    root /var/www/{{ domain_name }};
    index index.html;

    location / {
        auth_basic "Restricted Access";
        auth_basic_user_file {{ htpasswd_file }};
        try_files $uri $uri/ =404;
    }
}
