nginx报错directory index of "/home/www/hexo/" is forbidden

说明:最近在搭建hexo的时候全部都搞完了,访问发现nginx 报403 forbidden   查看了nginx的log日志

日志信息记录如下:

*481 directory index of "/home/www/hexo/" is forbidden~~~~~~

解决:去nginx conf目录下 配置文件nginx.conf 加上配置 autoindex on;自动索引

重启ngxin 即可

参考:https://blog.csdn.net/guanxs/article/details/107901101

原文地址:https://www.cnblogs.com/xuchao0506/p/15789299.html