1

I have installed nginx,php-fpm,mysql from package manager on ubuntu 12.04,

Nginx version - 1.1.19.

How can we enable chunked uploading mode. Do we need to compile and install nginx for enabling Chunked Mode.

Will compiling nginx needs compilng php-fpm and mysql.

i am new to this can any one guide me.

For me with Apache chunked uploading is working without adding any extra modules.

is there a way to install missing modules in nginx using package manager like that of Apache.

ananthan
  • 1,530

3 Answers3

4

In ubuntu 12.04, you need to install nginx-extras instead of nginx-full for this module

DanJ
  • 289
3

According to Ubuntu's change log the chunkin module was added in 1.1.8 so 1.1.9 in 12.04 should have it. The nginx wiki explains the chunkin module in detail, but it works by replacing the 411 Length Required error page with a command that resumes the request:

chunkin on;

error_page 411 = @my_411_error;
location @my_411_error {
    chunkin_resume;
}

This should be set up in the server block.

If you are not getting the 411 Length Required error, then you have some other problem and should say exactly what error you are getting when you try to use chunked uploading.

As for the rest of your questions:

  • recompiling nginx does not require recompiling anything else
  • nginx must have all modules built in when it is compiled, so you cannot install modules with the package manager.
DerfK
  • 19,826
0

Since nginx v1.3.9 was released in 2012 it has supported chunked mode request handling natively. It is no longer referred to as chunkin, nor requires explicit config to enable it.

Pierz
  • 743