Error_page for 413 not working on remote machine, but works on localhost

Hi all,

I am trying to setup an error_page for 413 (Too large uploads). It
works perfectly fine on localhost, where it doesn’t work on my remote
staging machine.

There is no change in the configuration file (except for the hostname
setting). When I try to upload a file larger than the limit (which is
the default 1MB) in case of the remote machine, the request gets
aborted, i.e. Firefox throws up the “Connection was reset” error page.
In the case of localhost, however, I get the appropriate error file.

The error file permissions are proper. I see the 413 log line in
access.log and the corresponding entry in error.log in both setups. It
is the exact same build (0.8.52) on both machines.

Any pointers to troubleshoot this?

Would any other data from my side be useful to better
understand/diagnose the issue here?


Regards,
Srirang G Doddihal
Brahmana.

The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.

I want to do it all ALONE.

Hi all,

I am trying to setup an error_page for 413 (Too large uploads). It
works perfectly fine on localhost, where it doesn’t work on my remote
staging machine.

There is no change in the configuration file (except for the hostname
setting). When I try to upload a file larger than the limit (which is
the default 1MB) in case of the remote machine, the request gets
aborted, i.e. Firefox throws up the “Connection was reset” error page.
In the case of localhost, however, I get the appropriate error file.

The error file permissions are proper. I see the 413 log line in
access.log and the corresponding entry in error.log in both setups. It
is the exact same build (0.8.52) on both machines.

Any pointers to troubleshoot this?

Would any other data from my side be useful to better
understand/diagnose the issue here?


Regards,
Srirang G Doddihal
Brahmana.

The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.

I want to do it all ALONE.

On 18.06.2011 15:12, Srirang Doddihal wrote:

The error file permissions are proper. I see the 413 log line in
access.log and the corresponding entry in error.log in both setups. It
is the exact same build (0.8.52) on both machines.

Any pointers to troubleshoot this?

looks like this is browser issue, not nginx one.

(russian language) explanation: Почему невозможно корректно ограничить размер закачиваемого файла

try translate it to english via google translate.


Best regards,
Gena

mr srirang,

    you are using nginx upload module right. 413 will be thrown when

the request entity too large .set the field like this

    upload_max_output_body_len  0;

   0 means there will be no restriction for the file size u r

uploading .check in ur remote machine config .if u did nt specify the
above .the default will be 100kb. and another thing there is no file
limit .u can change to whatever the size u want to upload.

if u still get that connection was reset

try like this

comment the access_log path in your config file

then upload

may be because access permission in writing log file.

Posted at Nginx Forum: