I have a web application which is processing some data on server side. I am requesting this process with a post request.
The problem is that if I have a big amount of data, I will get a timeout. I am usig a ngnix server with PHP.
The error I am getting is 404 Not Found.
Do you know how is it possible to increase the timeout?
Thank you.
PHP
To increase PHP execution timeout, increase in php.ini. To see where your php.ini is located, see phpinfo().
nginx
To increase nginx's timeout on reading from backend, increase in nginx config (nginx/nginx.conf).
More: http://wiki.nginx.org/HttpProxyModule#proxy_read_timeout
cURL
This is an assumption, but since you say you are making a POST request, increase cURL timeout
More: http://www.php.net/manual/en/function.curl-setopt.php
Misc
Be sure to set timeouts with precedence in mind. PHP will keep processing even if nginx decided to stop listening. etc.