Laravel 5.3 搭配 nginx 报请求超时 500 错误
报错信息:
2017/02/21 22:41:37 [info] 5427#0: *991 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 22:41:37 [info] 5427#0: *992 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 22:43:07 [info] 5427#0: *995 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80 2017/02/21 22:43:07 [info] 5427#0: *996 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 }
希望大神解答一下 , google 百度了半天无果
推荐文章: