Welcome! Log In Create A New Profile

Advanced

Nginx upload module gives 503 error on example configuration

Posted by tadeas 
Nginx upload module gives 503 error on example configuration
July 05, 2010 05:23PM
Hi!
I have to learn to use the Nginx upload module, but I cannot install it :) .
http://www.grid.net.ru/nginx/upload.en.html
I've followed the install procedure (recompile Nginx with the module), I configured it as suggested on the official website (the link I've mentioned above). If I try the example script:
http://pastebin.com/cfMLRQkE

I get 503 Service Temporarily Unavailable error.

My nginx.conf looks like this (including the upload module settings):
http://pastebin.com/DhVw9xM9

If I try to point the form's action to the example script (i.e. to upload_example.php instead of /upload), it creates an empty table, it means that either array_key_exists($key."_name", $_POST) or array_key_exists($key."_path",$_POST) returns false - i.e. $_POST doesn't contain the expected values that the upload module should provide. In fact it contains the casual ["input"]["name"], ["input"]["tmp_name"] etc. values as in regular PHP.

I use Debian Squeeze if it makes any difference.

Any ideas what's wrong?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
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