changed client_body_limit (now in KB)

+ multiples little adjusts
This commit is contained in:
lperrey
2022-08-15 02:14:27 +02:00
parent 9ac84f706d
commit a284e400c1
12 changed files with 48 additions and 127 deletions

View File

@@ -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 doesnt 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 {