Commit e2bcc088 authored by Skirmantas's avatar Skirmantas

basic auth

parent 9f8d8242
alice:$apr1$Q9qBLkLy$YQNxI8/GYuHLmoOUkbjN70 BiuroPowerBI:$apr1$5nxZLxY0$egUbQUHmxcSfqzIiSsLgx.
bob:$apr1$5rz0Qz20$Xuo4c3yrZRjkAk89il7Us/
...@@ -19,11 +19,11 @@ location / { ...@@ -19,11 +19,11 @@ location / {
# auth_basic_user_file /etc/nginx/.htpasswd; # auth_basic_user_file /etc/nginx/.htpasswd;
} }
# location /wp-json/api/v1/contacts { location /wp-json/api/ {
# try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?$args;
# auth_basic "Restricted Content"; auth_basic "Basic auth";
# auth_basic_user_file /etc/nginx/.htpasswd; auth_basic_user_file /var/www/html/.htpasswd;
# } }
location ~ \.php$ { location ~ \.php$ {
try_files $uri =404; try_files $uri =404;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment