Welcome! Log In Create A New Profile

Advanced

Problem with large POST requests

Posted by Cod 
Cod
Problem with large POST requests
November 06, 2011 05:39PM
Hi,

I am working on a PHP application which sometimes requires large POST requests (HTML forms with a lot of fields). It works like a charm locally on Apache server but there is a problem on the production server which has nginx installed. Large POST requests are cut without throwing any errors. I think the problem is laying in nginx configuration but I am a programmer and not a server admin so I need your help. Thanks in advance for any idea what might be wrong.

Cheers,
Michal
Re: Problem with large POST requests
November 08, 2011 06:12AM
For upload uri's adjust "1m" (MByte) to the value you need:
client_max_body_size 1m;

If you have long running apps (like reports) you maybe need more than "60" seconds to answer:
send_timeout 60;
[proxy_read_timeout 60;] <- if you use proxy_pass

T.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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