ok Location sorting and processing is finally working as expected, still a few things to add like error_pages but will get there soon
This commit is contained in:
@@ -20,30 +20,32 @@ server {
|
||||
# root /home/me/Programming/42/group_webserv; # but this is fine
|
||||
|
||||
location /test {
|
||||
root /www/test;
|
||||
# root /www/test;
|
||||
index index.html;
|
||||
}
|
||||
# If not explicitly set, ConfigParser need to genererate a location block
|
||||
# like this for path "/" (based on field "root" and "index" of the server)
|
||||
location / {
|
||||
root /www;
|
||||
index index.html;
|
||||
allow_methods DELETE;
|
||||
}
|
||||
# location / {
|
||||
# root /www;
|
||||
# index index.html;
|
||||
# allow_methods DELETE;
|
||||
# }
|
||||
|
||||
allow_methods GET POST;
|
||||
|
||||
# location /test/something.html {
|
||||
location /test/something.html {
|
||||
allow_methods GET POST DELETE;
|
||||
allow_methods DELETE;
|
||||
}
|
||||
|
||||
# location /something/long/here {
|
||||
# }
|
||||
|
||||
location /something/long {
|
||||
location /test/test_deeper {
|
||||
}
|
||||
|
||||
location /something/long/here/but/more {
|
||||
location /test/test_deeper/something.html {
|
||||
allow_methods DELETE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user