把LNMP一键安装后的default绑定一个域名doc.weixiaoline.com

访问该域名都是403错误

解决办法:vim /usr/local/nginx/conf/nginx.conf

添加下图所示autoindex on;到server配置节点。

image.png