【问题标题】:Apache 2.4 on Fedora 20 not indexing the directories in the documentrootFedora 20 上的 Apache 2.4 未索引 documentroot 中的目录
【发布时间】:2015-11-05 21:04:31
【问题描述】:

我在 Fedora 上遇到了 apache 问题,问题如下。

我最近有时保持不变,比如说一年,我一直在进行软件更新,但我希望配置没有改变,而是他们改变了。

更具体地说,假设我一年前在我的服务器上有两个项目,并且将虚拟主机设置为索引,以便我可以在服务器启动时将项目视为目录并快速进入每个项目,但知道配置有点丢失或被覆盖,因为当我在浏览器中键入 localhost 时,我看到一个来自我的项目目录的页面,我什至无法访问项目内的目录,因为它给了我“权限被拒绝”。 .

是权限问题吗?

【问题讨论】:

    标签: apache fedora20


    【解决方案1】:

    问题出在软件更新上,在 fedora 中添加了一个配置文件:

    # This configuration file enables the default "Welcome" page if there
    # is no default index page present for the root URL.  To disable the
    # Welcome page, comment out all the lines below. 
    #
    # NOTE: if this file is removed, it will be restored on upgrades.
    #
    #<LocationMatch "^/+$">
    #    Options -Indexes
    #    ErrorDocument 403 /.noindex.html
    #</LocationMatch>
    
    #<Directory /usr/share/httpd/noindex>
    #    AllowOverride None
    #    Require all granted
    #</Directory>
    
    #Alias /.noindex.html /usr/share/httpd/noindex/index.html
    

    你们都当心..这让我失去了 2 个小时...

    【讨论】:

      猜你喜欢
      • 2016-05-18
      • 2014-05-09
      • 2014-04-07
      • 2011-04-26
      • 1970-01-01
      • 1970-01-01
      • 2017-07-18
      • 2018-07-16
      • 2012-10-26
      相关资源
      最近更新 更多