Files
42_INT_12_webserv/default.config

59 lines
1.2 KiB
Plaintext

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
# i think root requires leading /
# root goop;
# root ./www/;
root ./www;
# root www/test; # also works
# root /www; # stat does not like this kind of definition
# root /usr; # because it's looking at / aka absolute path
# root ~/Programming/42/group_webserv/www; # didn't like thise either
# root /home/me/Programming/42/group_webserv; # but this is fine
location /test {
# root /www/test;
autoindex on;
}
# 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 /test/something.html {
location /test/something.html {
allow_methods DELETE;
}
# location /something/long/here {
# }
location /test/test_deeper {
}
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;
# }
}