A Much better way of picking locations

This commit is contained in:
Me
2022-08-10 16:14:21 +02:00
parent 86f7740984
commit 69c1a6f6bf
2 changed files with 40 additions and 77 deletions

View File

@@ -36,8 +36,7 @@ server {
redirect 301 https://berniesanders.com/404/;
}
# /stylesheet/ alone doesn't work, i mean we don't have wildcards...
location /stylesheet/style.css {
location /stylesheet/ {
# root ./www/../;
root ./;
}
@@ -46,9 +45,6 @@ server {
# allow_methods DELETE;
}
# location /something/long/here {
# }
location /test/test_deeper/ {
# allow_methods
autoindex on;
@@ -63,10 +59,4 @@ server {
# }
# ok in theory if one were to go to /test they would get the index in www
# as opposed to the one in /website...
# location /test {
# root /www;
# }
}