504 Gateway Time-out

I have a php script which takes too long to be executed (a form for
uploading large files). Upong running this I get “504 Gateway Time-out”
error. Since I do not want to update php.ini for the whole server, I put
set_time_limit(0); at the top of my php script; but still I get the same
time-out error. What is the problem? I’m on Nginx 1.0.4.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,215445,215445#msg-215445

Hi,

Search the manual for the following directives:

http {

[…]
client_header_timeout 10m;
client_body_timeout 10m;
send_timeout 10m;

fastcgi_read_timeout 600;
fastcgi_send_timeout 600;

}

Then experiment and specify values that are appropriate for your server
or virtual host.

Andrejs

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,215445,215446#msg-215446

Thanks locojohn! It perfectly worked :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,215445,215453#msg-215453

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs