【问题标题】:Apache on CentOS 7: configurationCentOS 7 上的 Apache:配置
【发布时间】:2016-01-04 19:47:58
【问题描述】:

我已经安装了 apache 并且测试页面 (http://localhost) 可以正常工作。 但是每次我在 /var/log/httpd/error_log 中访问这个页面时都会出现这个错误:

无法提供目录 /var/www/html/:没有匹配的 DirectoryIndex (index.html,index.php,index.php) 找到,服务器生成的目录 选项指令禁止的索引

我试图显示 index.html (http://localhost) 的子页面,但它不起作用,我想知道它是否与该错误有关。

【问题讨论】:

    标签: apache centos7


    【解决方案1】:

    我有两个想法... 您是否设置了正确的权限? (http://www.petefreitag.com/item/793.cfm)

    您是否在 http.conf 中指定了 DirectoryIndex?

    这里有两个相关页面有一个类似的问题: https://serverfault.com/questions/644639/wordpress-and-apache-2-4-installation-troubles-cannot-serve-directory http://www.linuxquestions.org/questions/linux-networking-3/directory-index-forbidden-by-rule-var-www-html-40030/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-02
      • 2017-05-19
      • 1970-01-01
      • 2017-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多