Nginx Error_log Error Upstream timed out (110:connection timed out)

Source: Internet
Author: User

Recently migrated server, the site moved to the new server on the first day of the 504 error, the server and IP can ping, view the error log, found upstream timed out (110:connection timed out) error, the internet Baidu, The reason should be nginx configuration problem

Open/etc/php5/php-fpm/pool.d/www.conf

Change Pm.max_children to 40

Request_terminate_time modified to 900

Re-modify PHP.ini

Max_execution_time = 30, modify it for a longer time

Again in the/etc/nginx/site-avaiable/virtual host name
File Location ~ \.php$ {

}
In addition

Fastcgi_read_timeout 600;
Fastcgi_connect_timeout 600;
Fastcgi_send_timeout 600;
Fastcgi_buffers 2 256k;
Fastcgi_buffer_size 128k;
Fastcgi_busy_buffers_size 256k;
Fastcgi_temp_file_write_size 256k;

Nginx Error_log Error Upstream timed out (110:connection timed out)

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.