Skip to content

Commit

Permalink
Merge pull request #361 from dantol29/dtolmaco/fix-def-config-file
Browse files Browse the repository at this point in the history
Change default config file
  • Loading branch information
552020 authored May 15, 2024
2 parents 6e041fa + 401f689 commit 094abfb
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions webserv_default.conf
Original file line number Diff line number Diff line change
@@ -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/;
}

0 comments on commit 094abfb

Please sign in to comment.