nginx配置php报错找不到文件:not found file,是$document_root的设置问题。
因为$document_root 的参数是由root html那一行定义的,默认是在/usr/share/nginx/html/ 所以把 html换成站点根目录就正常了。