nginx新手配置$document_root

nginx配置php报错找不到文件:not found file,是$document_root的设置问题。

 

 因为$document_root 的参数是由root html那一行定义的,默认是在/usr/share/nginx/html/ 所以把 html换成站点根目录就正常了。

 

posted @ 2021-07-26 11:19  絮风幻影  阅读(451)  评论(0编辑  收藏  举报