Nginx error summary

Link Transfer: HTTPS: //blog.csdn.net/cjfeii/article/details/49511829
1. Upstream Timed OUT (110: Connection Timed OUT) upstream from the while Reading Response header
This is mainly occurs in the following two cases:

a. Nginx as a proxy, require proper adjustment value of the proxy timeout.
LOCATION / {
...
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
...
}

. As another B the Nginx upstream php-fpm and other services, require proper adjustment option value fastcgi_read_timeout
LOCATION {$ ~ * .php
the include fastcgi_params;
the index.php fastcgi_index;
fastcgi_read_timeout 150;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $ $ DOCUMENT_ROOT fastcgi_script_name;
}

2. Open () "/usr/local/nginx/html/favicon.ico" failed (2: No File or SUCH directory)
just need to close the log favicon.ico:

location = /favicon.ico {
log_not_found off;
access_log off;
}


ref:
http://www.ttlsa.com/nginx/nginx-upstream-timed-out-110-connection-timed-out/
http://stackoverflow.com/questions/9657065/nginx-and-favicon-ico- -favicon-ico-GET HTTP-1-1-failed the
----------------
Disclaimer: This article is the original article CSDN bloggers "cjfeii", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/cjfeii/article/details/49511829

Guess you like

Origin www.cnblogs.com/maidongdong/p/11503358.html