Nginx访问PHP文件的File not found

更改配置文件nginx.conf

fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 

替换成下面

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

然后重新加载nginx配置文件

原文地址:https://www.cnblogs.com/hailspace/p/12761511.html