server { # this is a comment server_name our_server; listen 0.0.0.0:4040; # client_body_limit asdfa; # client_body_limit 400; index index.html; # this is another comment root ./www/; location /test { 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 { # allow_methods DELETE; } # location /something/long/here { # } location /test/test_deeper/ { # allow_methods autoindex on; } location /test/test_deeper/super_deep { autoindex on; } # location /test/test_deeper/something.html { # allow_methods DELETE; # } # 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; # } }