further tested autoindex, and i got a .css stylesheet to load from a folder outside of /www, pretty neat :)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user