nginx无法访问php-PHP问题

资源魔 17 0

nginx设置装备摆设中,对于php的设置装备摆设有错会招致nginx无奈拜访php。

找没有到拜访php找没有到文件,修正上面设置装备摆设

nginx.conf:

1.jpg

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使用问题

抱歉,评论功能暂时关闭!