Hello! I need to password protect a directory but everything that I try is not working - here is what I have in locations.conf:
location /secrets { auth_basic “Private”; auth_basic_user_file /var/www/domain.com/conf/htpasswd_secrets; allow 127.0.0.1; deny all; try_files $uri $uri/ $uri.php?$args; }
what do I need to add to this or edit to get it to work? Also, what’s the proper way to encrypt the password?