首页 > 其他 > 详细

Nginx 错误汇总

时间:2015-11-16 17:08:10      阅读:186      评论:0      收藏:0      [点我收藏+]

1. Upstream timed out (110: Connection timed out) while reading response header from upstream

这种情况主要在下面两种情况下发生:

  • a. Nginx 作为 proxy,需要适当的调整 proxy timeout 的值。
    location / {
        ...
        proxy_connect_timeout 70;
        proxy_read_timeout 150;
        proxy_send_timeout 150;
        ...
    }
  • b. Nginx作为 php-fpm 等其他的有上游服务,需要适当的调整 fastcgi_read_timeout 选项值
    location ~* .php$ {
        include         fastcgi_params;
        fastcgi_index   index.php;
        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 such file or directory)

只需要关闭 favicon.ico 的 log:

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



Nginx 错误汇总

原文:http://www.cnblogs.com/wjoyxt/p/4969275.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!