V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
JsonLuo
V2EX  ›  NGINX

laravel 5.3 搭配 nginx 服务器报 500 错误 日志显示超时

  •  
  •   JsonLuo · 2017-02-22 09:36:58 +08:00 · 2935 次点击
    这是一个创建于 2836 天前的主题,其中的信息可能已经有所发展或是发生改变。

    laravel5.2的就 OK 但是5.2的 group 路由也是超时错误 5.3的就连首页都打不开 hosts 文件肯定没有错的

    服务器错误日志:

    2017/02/21 23:16:25 [info] 5427#0: *1000 client timed out (60: Operation timed out) while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    2017/02/21 23:16:25 [info] 5427#0: *1001 client timed out (60: Operation timed out) while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    2017/02/21 23:16:25 [info] 5427#0: *1002 client timed out (60: Operation timed out) while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    2017/02/21 23:16:25 [info] 5427#0: *1003 client timed out (60: Operation timed out) while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    2017/02/21 23:20:47 [info] 5427#0: *1007 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    2017/02/21 23:20:47 [info] 5427#0: *1008 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
    

    我的配置文件:

      1 server {
      2         listen       80;
      3         server_name  dev.linger.com;
      4         #charset koi8-r;
      5         root   /usr/local/var/www/linger/public;
      6         index  index.php index.html index.htm;
      7         location / {
      8                 proxy_ignore_client_abort on;
      9                 try_files $uri $uri/ /index.php?$args;
     10         }
     11         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
     12         location ~ \.php$ {
     13                 fastcgi_buffer_size 128k;
     14                 fastcgi_buffers 32 32k;
     15                 fastcgi_pass   127.0.0.1:9000;
     16                 fastcgi_index  index.php;
     17                 fastcgi_intercept_errors    on;
     18                 include /usr/local/etc/nginx/fastcgi.conf;
     19         }
     20         access_log  /usr/local/var/log/nginx/local.access.log  main;
     21         error_log  /usr/local/var/log/nginx/local.error.log  info;
     22         #error_page  404              /404.html;
     23         # redirect server error pages to the static page /50x.html
     24         #
     25         error_page   500 502 503 504  /50x.html;
     26         location = /50x.html {
     27             root   html;
     28         }
     29         # deny access to .htaccess files, if Apache's document root
     30         # concurs with nginx's one
     31         #
     32         #location ~ /\.ht {
     33         #    deny  all;
     34         #}
     35     }
    

    请求大神帮忙解决下 thanks 百度 google 无果

    Ellison
        1
    Ellison  
       2017-02-22 10:50:08 +08:00
    权限
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5849 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 06:30 · PVG 14:30 · LAX 22:30 · JFK 01:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.