Skip to content

Commit

Permalink
chore: adjusted config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Taanviir committed May 2, 2024
1 parent 7cd4bd7 commit d535c7a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions configs/webserv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ server {
index index.html;

location / {
root ./.resources/sample_pages;
allow_methods GET;
}

error_page 404 /404.html;
location /404.html {
root ./.resources/sample_pages;
allow_methods GET;
}
}
Expand All @@ -27,20 +25,17 @@ server {
autoindex on;

location / {
root ./.resources/sample_pages;
index index.html;
index index.htm;
allow_methods GET;
}

error_page 404 /404.html;
location /404.html {
root ./.resources/sample_pages;
allow_methods GET;
}

error_page 500 502 503 504 /50x.html;
location /50x.html {
root ./.resources/sample_pages;
allow_methods GET;
}
}

0 comments on commit d535c7a

Please sign in to comment.