一般都是由于nginx的配置文件引起的。注意一下部分fastcgi_param
,默认为/script$fastcgi_script_name
,修改为$document_root$fastcgi_script_name
可以解决
1 2 3 4 5 6 7
| location ~ \.php$ { root /data/nginx/www.123.com; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
|