ホームページ  >  に質問  >  本文

nginx - index.html 不会在访问目录时自动载入

CentOS 安装了 nginx,访问网站目录比如 http://x.com/abc 时,不会自动载入 http://x.com/abc/index.html,而是直接 forbidden 了。

但如果访问 http://x.com/abc/index.html 就正常,怎么办?

阿神阿神2733日前725

全員に返信(1)返信します

  • 大家讲道理

    大家讲道理2017-04-25 09:03:10

    この設定が Nginx に存在するかどうかを確認します:

    リーリー

    Nginx に /abc 対応するファイル ディレクトリに対する r 権限があるかどうかを確認します。

    • http://nginx.org/en/docs/http/ngx_http_index_module.html
    • https://help.ubuntu.com/community/FilePermissions

    返事
    0
  • キャンセル返事