You are viewing an old revision of this post, from March 28, 2014 @ 11:15:08. See below for differences between this version and the current revision.

Solved – 504 Gateway Timeout Error In Nginx Web Server

-Open your nginx.conf file located in /etc/nginx directory

-Add this below piece of code under http { section

client_header_timeout 3000;
client_body_timeout 3000;
fastcgi_read_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

Note - If its already present , change the values according.

That’s it. Reload Nginx and php5-fpm.

service nginx reload

service php5-fpm reload

If the error persists ( which is rare ), consider increasing the values.

nguồn: http://www.codetweet.com/nginx/solved-504-gateway-timeout-error-in-nginx-web-server/

Revisions

  • March 28, 2014 @ 11:24:51 [Current Revision] by admin
  • March 28, 2014 @ 11:24:51 by admin
  • March 28, 2014 @ 11:15:08 by admin

Revision Differences

March 28, 2014 @ 11:15:08Current Revision
Content
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: -Open your nginx.conf file located in /etc/nginx directoryUnchanged: -Open your nginx.conf file located in /etc/nginx directory
Unchanged: </p>Unchanged: </p>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: -Add this below piece of code under&nbsp;<span style="color: rgb(128, 128, 128);">http {</span>&nbsp;sectionUnchanged: -Add this below piece of code under&nbsp;<span style="color: rgb(128, 128, 128);">http {</span>&nbsp;section
Unchanged: </p>Unchanged: </p>
Unchanged: <blockquote style="margin: 0px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; font-style: normal; line-height: 25px;">Unchanged: <blockquote style="margin: 0px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; font-style: normal; line-height: 25px;">
Unchanged: <p style="margin: 0px 0px 10px; background-color: rgb(124, 197, 118); color: rgb(255, 255, 255); text-align: center; line-height: 1.2; font-weight: 700; padding: 40px; font-size: 30px;">Unchanged: <p style="margin: 0px 0px 10px; background-color: rgb(124, 197, 118); color: rgb(255, 255, 255); text-align: center; line-height: 1.2; font-weight: 700; padding: 40px; font-size: 30px;">
Unchanged: <span style="color: rgb(128, 128, 128);">client_ header_timeout 3000;</span><br />Unchanged: <span style="color: rgb(128, 128, 128);">client_ header_timeout 3000;</span><br />
Unchanged: <span style="color: rgb(128, 128, 128);">client_ body_timeout 3000;</span><br />Unchanged: <span style="color: rgb(128, 128, 128);">client_ body_timeout 3000;</span><br />
Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_ read_timeout 3000;</span><br />Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_ read_timeout 3000;</span><br />
Unchanged: <span style="color: rgb(128, 128, 128);">client_ max_body_size 32m;</span><br />Unchanged: <span style="color: rgb(128, 128, 128);">client_ max_body_size 32m;</span><br />
Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_buffers 8 128k;</span><br />Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_buffers 8 128k;</span><br />
Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_buffer_size 128k;</span>Unchanged: <span style="color: rgb(128, 128, 128);">fastcgi_buffer_size 128k;</span>
Unchanged: </p>Unchanged: </p>
Unchanged: </blockquote>Unchanged: </blockquote>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: <span style="color: rgb(255, 0, 0);">Note</span>&nbsp;- If its already present , change the values according.Unchanged: <span style="color: rgb(255, 0, 0);">Note</span>&nbsp;- If its already present , change the values according.
Unchanged: </p>Unchanged: </p>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: That&rsquo;s it. Reload Nginx and php5-fpm.Unchanged: That&rsquo;s it. Reload Nginx and php5-fpm.
Unchanged: </p>Unchanged: </p>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: <em>service nginx reload</em>Unchanged: <em>service nginx reload</em>
Unchanged: </p>Unchanged: </p>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: <em>service php5-fpm reload</em>Unchanged: <em>service php5-fpm reload</em>
Unchanged: </p>Unchanged: </p>
Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">Unchanged: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
Unchanged: If the error persists ( which is rare ), consider increasing the values.Unchanged: If the error persists ( which is rare ), consider increasing the values.
 Added: </p>
 Added: <p style="margin: 0px 0px 12.5px; color: rgb(102, 102, 102); font-family: 'Roboto Slab', serif; font-size: 15px; line-height: 25px;">
 Added: nguồn:&nbsp; http://www.codetweet.com/ nginx/solved- 504-gateway- timeout-error- in-nginx-web-server/
Unchanged: </p>Unchanged: </p>

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply