Server 504--generally is caused by nginx default fastcgi process response slow

Source: Internet
Author: User
  1. Situation One solution:

    The default fastcgi process response buffer is 8K, we can set a larger, in nginx.conf, join: Fastcgi_buffers 8 128k

    This indicates that the fastcgi buffer is set to a size of 8 128k in space.

  2. 3

    Situation one solution (improvement):

    After the above method is modified, if the problem still occurs, we can continue to modify the Nginx timeout parameter, the parameter is a bit larger, such as set to 60 seconds:

    Send_timeout 60;

    After the adjustment of these two parameters, the results did not prompt "504 Gateway time-out" error, indicating that the effect is quite good, the problem is basically solved.

Server 504--generally is caused by nginx default fastcgi process response slow

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.