RanniSch / webserv

0 stars 2 forks source link

Configuration: Setup a default file to search for if you ask for a directory. #34

Closed MaxIhme closed 1 year ago

MaxIhme commented 1 year ago

http://localhost:8000/static_website works

config:

location /static_website
{
    allow_methods GET;
    index static.html;
}

and 403 Forbidden when (works, because autoindex is forbidden) config:

location /static_website
{
    allow_methods GET;
    #index static.html;
}