nginx 配置PHP 问题,已经修改了项目目录还是可以访问的


清除一下缓存

重启了


这不是访问不到了吗

我可以加你qq吗


有什么问题呢


我清除了那些配置,他还能访问

默认初始页为index.html

你配置location会优先去匹配location的

http://shouce.jb51.net/nginx/left.html看看nginx中文文档


还是访问不了的呢

用alias代替root试试

记得重启



已经重启

找到问题了


https://blog.csdn.net/shuangmu9768/article/details/108397686#%E3%80%9017%E3%80%91windows%E4%B8%8B%E9%85%8D%E7%BD%AEnginx+php


nginx + php

1231