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错误显示客户端在等待请求时关闭了连接,通过客户端浏览器访问域时,客户端:x.x.x.x,服务器:0.0.0.0:80
错误表明
连接到xx.cn(xx.cn)| x.x.x.x |:80 ...已连接。 HTTP请求已发送,正在等待响应... 500内部服务器错误 2019-09-13 19:48:18错误500:内部服务器错误。
通过wget xx.cn在服务器上
我想知道如何处理吗?
答案 0 :(得分:1)
如果您正在调用的index.php(或任何其他脚本)未正确退出(例如引发异常),通常会发生这种情况。
看看错误。日志