Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions config/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ server {
listen 8080;
server_name localhost;
root ./www;
client_max_body_size 10000;
client_max_body_size 10M;

location / {
allowed_methods GET POST DELETE;
index index.html;
autoindex on;
autoindex off;
}

location /upload {
allowed_methods POST;
allowed_methods POST DELETE;
upload_store ./www/uploads;
}

location /cgi-bin/ {
location /cgi-bin {
allowed_methods GET POST;
fastcgi_pass 127.0.0.1:9000;
cgi .py /usr/bin/python3;
}

include error.conf;
}
}
5 changes: 1 addition & 4 deletions config/error.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
error_page 301 /301.html;
error_page 400 /400.html;
error_page 401 /401.html;
error_page 403 /403.html;
error_page 404 /404.html;
error_page 405 /405.html;
error_page 413 /413.html;
error_page 501 /501.html;
error_page 500 502 503 504 /50x.html;
error_page 500 502 503 504 /50x.html;
Loading