【发布时间】: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。