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