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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM