【问题标题】:403 Forbidden: nginx is blocking default page403 Forbidden: nginx 正在阻止默认页面
【发布时间】:2017-12-15 20:04:40
【问题描述】:

如果我访问我的网站example.com,我会从 nginx 收到 403 Forbidden 错误,但在 example.com/index.html 上却没有(索引文件是默认的)。我在CentOS 6.9 上使用Plesk Onyx 17.0.17。我的网站空间中的所有其他文件都正确加载。仅在明确的域example.com 上不起作用。我有默认的 nginx 配置。

https://example.com = 403 禁止; https://example.com/index.html = 工作

【问题讨论】:

  • 日志说什么?你的 nginx 配置是什么?
  • nginx 是否配置为将 index.html 作为默认页面提供?
  • 错误日志为空,默认页面为index.html。

标签: linux nginx plesk


【解决方案1】:

我解决了这个问题。我在 PHP 设置 (Plesk) 中从 FPM 更改为 FastCGI。 Plesk PHP-Settings (Screenshot)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-03
    • 1970-01-01
    • 2020-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多