autoindex is working, a few things to iron out be we well on our way

This commit is contained in:
Me
2022-08-07 22:25:24 +02:00
parent f777441edf
commit 94852babc6
7 changed files with 85 additions and 39 deletions

View File

@@ -12,7 +12,8 @@ server {
index index.html; # this is another comment
# i think root requires leading /
# root goop;
root /www;
# 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
@@ -21,7 +22,7 @@ server {
location /test {
# root /www/test;
index index.html;
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)