further tested autoindex, and i got a .css stylesheet to load from a folder outside of /www, pretty neat :)

This commit is contained in:
Me
2022-08-08 04:02:53 +02:00
parent 9ee7205b95
commit f87024c32f
4 changed files with 30 additions and 2 deletions

View File

@@ -14,7 +14,13 @@ server {
root ./www/;
location /test {
index something.html;
index index1.html;
}
# /stylesheet/ alone doesn't work, i mean we don't have wildcards...
location /stylesheet/style.css {
# root ./www/../;
root ./;
}
location /test/something.html {
@@ -28,6 +34,10 @@ server {
autoindex on;
}
location /test/test_deeper/super_deep {
autoindex on;
}
location /test/test_deeper/something.html {
allow_methods DELETE;
}