记:nginx配置文件踩过的一个小坑(nginx配置好之后,只能访问index.php,其他文件都是 file not found)

记几个常用nginx调试的命令

ps -ef |grep nginx:查看nginx进程的相关信息

find / |grep nginx:查找含nginx的文件及文件夹

netstat -antp |grep :80 : 查看80端口的监听情况

 

 

 

 nginx配置好之后,只能访问index.php,访问其他php文件 file not found

 

如上图,在匹配php文件下不配置文件目录是找不到对应的访问文件的,但可以访问index.php

posted @ 2019-06-17 16:46  leon-chan  阅读(2330)  评论(0编辑  收藏  举报