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:
Me
2022-08-05 21:46:46 +02:00
parent 9ac14aa1aa
commit f7dc5ccde4
12 changed files with 119 additions and 114 deletions

View File

@@ -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;
}