1.rewrite or internal redirection cycle while processing
rewrite问题循环
2.*1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream.
可能1:
fastcgi参数不对
例如修改为以下:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
可能2:
fpm和nginx由于权限问题无法通讯
ps aux | grep -v root | grep php-fpm | cut -d\ -f1 | sort | uniq 查看fpm运行用户是否和nginx一致
不一致修改php-fpm.conf 的 user参数或者group参数
参考
https://www.cnblogs.com/smallrookie/p/7491514.html