added multipart upload file,
it works, but need some adjustements, refactoring and testing
This commit is contained in:
@@ -7,7 +7,7 @@ server {
|
||||
listen 0.0.0.0:4040;
|
||||
|
||||
# client_body_limit asdfa;
|
||||
# client_body_limit 400;
|
||||
client_body_limit 3000000;
|
||||
|
||||
index index.html; # this is another comment
|
||||
|
||||
@@ -19,6 +19,19 @@ server {
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location /upload {
|
||||
allow_methods POST;
|
||||
autoindex on;
|
||||
upload_dir ./www/user_files/; # TODO: append a '/' if there is none ?
|
||||
# root doesn’t matter if used only with POST and no CGI
|
||||
}
|
||||
|
||||
location /the_dump {
|
||||
allow_methods GET;
|
||||
root ./www/user_files;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location /redirect {
|
||||
redirect 307 https://fr.wikipedia.org/wiki/Ketchup;
|
||||
# redirect 307 https://www.youtube.com/watch?v=rG6b8gjMEkw;
|
||||
@@ -50,13 +63,11 @@ server {
|
||||
|
||||
location /test/test_deeper/ {
|
||||
# allow_methods
|
||||
autoindex on;
|
||||
root ./www/test/test_deeper/;
|
||||
}
|
||||
|
||||
location /test/test_deeper/super_deep {
|
||||
root ./www/test/test_deeper/super_deep/;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
# location /test/test_deeper/something.html {
|
||||
|
||||
Reference in New Issue
Block a user