【问题标题】:Can't access index.php by accessing its directoy while calling the exact path is working调用确切路径时无法通过访问其目录来访问 index.php
【发布时间】:2021-02-08 21:26:30
【问题描述】:

当我尝试通过 domain.com/folder 访问文件夹/index.php 时,我总是从 Phusion Passenger. 收到此错误。

Domain.com/folder/index.php 工作得非常好。我在 plesks 设置中添加了 index.html 和 index.php 作为索引文件,而不是默认设置,并且还尝试了一切来查找日志,但没有。或者至少不是他们应该在的地方。 domain.com btw 也有效,并给了我主要的 index.html。

我到底错过了什么?

【问题讨论】:

    标签: apache nginx passenger plesk


    【解决方案1】:

    事实证明,网站的基本目录不应位于 /httpdocs/stupidfolder/ 之类的子文件夹中... 如果你把它直接放到 httpdocs 中一切正常

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-19
      • 1970-01-01
      • 2011-09-28
      • 2017-07-08
      • 1970-01-01
      • 1970-01-01
      • 2017-08-05
      • 2021-04-10
      相关资源
      最近更新 更多