diff --git a/webserv_default.conf b/webserv_default.conf index f4248c4b..1648b483 100644 --- a/webserv_default.conf +++ b/webserv_default.conf @@ -1,16 +1,27 @@ - server { listen 8080; - server_name localhost:8080; - allow_methods GET POST; - cgi_ext .cgi .py; - autoindex on; + server_name localho:8080 localhost:8080 www.localhost:8080; + allow_methods GET POST DELETE; + autoindex off; root /var/; error_page 404 404.html; + cgi_ext .cgi; + location /admin { return http://google.com; index admin.html; allow_methods GET POST; } + location /cgi-bin/ { + cgi_ext .cgi .py; + autoindex off; + } } +server { + listen 8080; + server_name www.example.com; + allow_methods GET POST DELETE; + autoindex off; + root var/; +} \ No newline at end of file