centos7 配置nginx 解析 php 把$script 修改成$doucment_root 即可
直接上代码, 只需要把$script 修改成$doucment_root 即可
/etc/nigns/conf.d 下面的配置文件
location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }