Nginx保持投掷502糟糕的网关

时间:2016-08-02 16:10:15

标签: php laravel nginx laravel-5 ubuntu-14.04

Nginx:nginx / 1.11.2

即使我更新了我的nginx配置后,我仍然得到 502 Bad Gateway

Nginx配置

location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_buffers 8 16k; <----
        fastcgi_buffer_size 32k;<----
        fastcgi_connect_timeout 300;<----
        fastcgi_send_timeout 300;<----
        fastcgi_read_timeout 300;<----
    }

修改并保存设置后,我也做了service nginx reload

日志

/var/log/nginx/error.log

2016/07/30 14:24:16 [notice] 18776#18776: signal process started
2016/07/30 16:46:39 [notice] 20193#20193: signal process started
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/access.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/default-error.log" failed (13: Permission denied)

/var/log/nginx/access.log

64.16.214.100 - - [30/Jul/2016:20:04:30 -0400] "GET /myadmin/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
192.227.209.147 - - [30/Jul/2016:20:34:31 -0400] "GET /w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1" 400 173 "-" "-"
141.212.122.160 - - [31/Jul/2016:03:59:32 -0400] "GET /x HTTP/1.1" 400 173 "-" "Telesphoreo"
64.16.214.100 - - [31/Jul/2016:14:39:41 -0400] "GET /pma/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
213.128.81.66 - - [01/Aug/2016:12:13:26 -0400] "GET / HTTP/1.0" 404 169 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)"

/var/log/nginx/default-error.log

2016/08/02 11:52:48 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 11:54:08 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:02:28 [error] 2893#2893: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:03:28 [error] 2893#2893: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:25:28 [error] 2893#2893: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216"

我错过了什么吗?

我需要对php.ini设置进​​行任何操作吗?

任何提示/建议都对我意义重大!

0 个答案:

没有答案