在windwos中安装了nginx + php .启动了,现在访问网站目录下的html 没问题,反问php 就报错。到底怎么改?

在windwos中安装了nginx + php .启动了,现在访问网站目录下的html 没问题,反问php 就报错。到底怎么改?,第1张

location ~ .*\.php?$ {

fastcgi_pass 127.0.0.1:9000

fastcgi_index index.php

include fastcgi.conf

}

php用php-fpm启动,然后nginx

location ~ \.php$ {

fastcgi_pass 127.0.0.1:9000

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name

includefastcgi_params

}

这样就可以了


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/6207219.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-18
下一篇 2023-03-18

发表评论

登录后才能评论

评论列表(0条)

保存