nginx设置装备摆设中,对于php的设置装备摆设有错会招致nginx无奈拜访php。
找没有到拜访php找没有到文件,修正上面设置装备摆设
nginx.conf:
location ~ \.php$ { proxy_pass http://127.0.0.1:80; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; #fastcgi_param SCRIPT_FILENAME /$document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; include fastcgi_params; }
以上就是nginx无奈拜访php的具体内容,更多请存眷资源魔其它相干文章!
标签: php php教程 nginx php故障解决 php使用问题
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!