changed client_body_limit (now in KB)
+ multiples little adjusts
This commit is contained in:
@@ -7,28 +7,19 @@ server {
|
||||
listen 0.0.0.0:4040;
|
||||
|
||||
# client_body_limit asdfa;
|
||||
client_body_limit 3000000;
|
||||
client_body_limit 5000;
|
||||
# Max == 18446744073709551615 / 1024 == 18014398509481984
|
||||
|
||||
index index.html; # this is another comment
|
||||
#index mdr.html; # this is another comment
|
||||
|
||||
root ./www/;
|
||||
|
||||
error_page 404 ./www/error_pages/error_404.html;
|
||||
|
||||
|
||||
# something to do with /upload
|
||||
|
||||
location /upload {
|
||||
root ./www/test/;
|
||||
index submit_form.html;
|
||||
# upload_dir ./www/uploaded/;
|
||||
# cgi_ext php;
|
||||
}
|
||||
|
||||
location /uploaded {
|
||||
# autoindex on;
|
||||
root ./www/uploaded/;
|
||||
upload_dir ./www/uploaded/;
|
||||
location / {
|
||||
allow_methods GET;
|
||||
root ./www/;
|
||||
}
|
||||
|
||||
location /srcs/cgi-bin/ {
|
||||
@@ -46,22 +37,17 @@ server {
|
||||
cgi_ext out php sh;
|
||||
}
|
||||
|
||||
location /cgi-bin {
|
||||
root ./srcs/cgi-bin/;
|
||||
cgi_ext cpp php sh;
|
||||
}
|
||||
|
||||
location /upload {
|
||||
allow_methods POST;
|
||||
autoindex on;
|
||||
upload_dir ./www/user_files/; # TODO: append a '/' if there is none ?
|
||||
upload_dir ./www/user_files/;
|
||||
# root doesn’t matter if used only with POST and no CGI
|
||||
}
|
||||
|
||||
location /the_dump {
|
||||
allow_methods GET;
|
||||
allow_methods GET DELETE;
|
||||
root ./www/user_files;
|
||||
autoindex on;
|
||||
#autoindex on;
|
||||
}
|
||||
|
||||
location /redirect {
|
||||
|
||||
Reference in New Issue
Block a user