nginx 错误 - 客户端在等待请求时关闭连接,客户端:xxxx,服务器:0.0.0.0:80

server {

    listen  80;

    server_name xx.cn;

    index index.php index.html index.htm;

    root  /data/www_deploy/xx/backend/web;


    location ~* /\. {

         deny all;

    }    


    location  / {

        try_files $uri /index.php?$args;

    }

    location ~ .*\.(php|php5)?$

    {

         fastcgi_pass    127.0.0.1:9000;

         fastcgi_index   index.php;

         fastcgi_split_path_info ^(.+\.php)(/.+)$;

         fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

         include         fastcgi_params;

    }

    client_max_body_size 512m;

}


nginx错误显示客户端在等待请求时关闭连接,客户端:xxxx,服务器:0.0.0.0:80通过客户端浏览器访问域时


错误表明


正在连接到 xx.cn (xx.cn)|xxxx|:80... 已连接。已发送 HTTP 请求,等待响应... 500 内部服务器错误 2019-09-13 19:48:18 错误 500:内部服务器错误。


通过 wget xx.cn 在服务器上


我想知道如何处理?


哔哔one
浏览 274回答 1
1回答

哆啦的时光机

如果您正在调用的 index.php(或任何其他脚本)没有正确退出,例如抛出异常,这通常会发生。看看error.log
打开App,查看更多内容
随时随地看视频慕课网APP