htaccess protect Vesta
Posted: Sun Aug 14, 2016 7:22 pm
Please how can protect Vesta with htaccess.
I want protect vesta with htaccess Authentication.
I want protect vesta with htaccess Authentication.
Code: Select all
location / {
allow 192.168.1.100;
deny all;
expires max;
index index.php;
}
Code: Select all
sudo htpasswd -c /etc/nginx/.htpasswd exampleuser
Code: Select all
New password:
Re-type new password:
Adding password for user exampleuser
Code: Select all
login:password
Code: Select all
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
expires max;
index index.php;
}
Code: Select all
service vesta restart