nginx+php(FastCGI) 404 Error

/etc/nginx/fastcgi_params 添加一行即可

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

原文地址:https://www.cnblogs.com/fatlyz/p/2502008.html