编辑你的PHP配置文件php.ini

# 修改此配置
cgi.fix_pathinfo=1
# 此项留空
doc_root=
# 此项注释掉
#open_basedir =

重启Nginx服务器即可

Q.E.D.