How can I lock a dictionary in debian server installed with ngix?
Posted
by
Tin Aung Linn
on Server Fault
See other posts from Server Fault
or by Tin Aung Linn
Published on 2012-11-04T11:01:39Z
Indexed on
2012/11/04
11:05 UTC
Read the original article
Hit count: 207
I tried so many methods and get stick hours with this.I edit /etc/nginx/nginx.conf and write these lines.
location /home/user/domains/example.com/public_html/lockfolder/ { auth_basic "Restricted"; auth_basic_user_file /home/user/domains/example.com/.htpasswd; }
and I use crypt(3) encryption to make passwd with the command mkpasswd.Then I did with the given procedure user:encryptedpasswd in .htpasswd.
But things does not work as said.Let me know if anyone know how I can exactly make configure for my purpose!
Thanks you.
© Server Fault or respective owner