http basic auth fix

This commit is contained in:
bunkerity
2020-06-27 19:09:38 +02:00
parent 472ec31cd2
commit 1d6ab7275f
4 changed files with 13 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
location %AUTH_BASIC_LOCATION% {
auth_basic "%AUTH_BASIC_TEXT%";
auth_basic_user_file /etc/nginx/.htpasswd;
auth_basic "%AUTH_BASIC_TEXT%";
auth_basic_user_file /etc/nginx/.htpasswd;
}

View File

@@ -1,5 +1,3 @@
root /www;
index index.html index.php;
location / {
try_files $uri $uri/ =404;
}
try_files $uri $uri/ =404;