Welcome! Log In Create A New Profile

Advanced

Re: upload file problem (500 Internal Server Error)

Piotr Polok
September 01, 2011 06:04AM
On Thu, 1 Sep 2011 17:49:29 +0800, li zJay wrote:
> try this?
>
>> worker_rlimit_nofile 10000;

HI,

Thank you, The 'worker_rlimit_nofile 10000' is not solving the problem.

I have added a 'fastcgi_pass 127.0.0.1:9000' to a '/upload' location
and now I'm getting the 'No input file specified.' error on html form
and the '/var/log/nginx/error.log' is clear.

This is my '/upload' configuration:

------
location /upload {
#Pass altered request body to this location
upload_pass @test;

#Store files to this directory
#The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should
exist
upload_store /var/www/upload;

#Allow uploaded files to be read only by user
#upload_store_access user:r;
upload_store_access user:rw group:rw all:r;

#Set specified fields in request body
upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type
"$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";

#Inform backend about hash and size of a file
upload_aggregate_form_field "$upload_field_name.md5"
"$upload_file_md5";
upload_aggregate_form_field "$upload_field_name.size"
"$upload_file_size";

upload_pass_form_field "^submit$|^description$";

upload_cleanup 400 404 499 500-505;

fastcgi_pass 127.0.0.1:9000;
}

# Pass altered request body to a backend
location @test {
proxy_pass http://localhost:80;
}
------

--
best regards
Piotr Polok

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upload file problem (500 Internal Server Error)

Piotr Polok September 01, 2011 04:44AM

Re: upload file problem (500 Internal Server Error)

lm011111 September 01, 2011 05:52AM

Re: upload file problem (500 Internal Server Error)

Piotr Polok September 01, 2011 06:04AM

Re: upload file problem (500 Internal Server Error)

magicbear September 01, 2011 07:17PM

Re: upload file problem (500 Internal Server Error)

Piotr Polok September 05, 2011 02:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready