-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from dantol29/dtolmaco/fix-def-config-file
Change default config file
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/; | ||
} |