原先网站使用nginx+phpfpm的方式运行网站,有些接口会报错

然后就跟着官方文档 https://doc.crmeb.com/pro/crmebprov3_5/32399 ,使用swoole的方式运行,
#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass http://127.0.0.1:20699;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
location ^~ /
{
if (!-e $request_filename) {
proxy_pass http://127.0.0.1:20699;
}
proxy_http_version 1.1;
proxy_read_timeout 360s;
proxy_redirect off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_fileTFRAJbJb 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_fileTFRAJbJb 1;
expires 1m;
}
if ( $static_fileTFRAJbJb = 0 )
{
add_header Cache-Control no-cache;
}
}
#PROXY-END/
再访问网站,就变成了下载文件

请问这个是什么原因,该怎么解决呢?

