說明:最近在搭建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