繁体   English   中英

Fedora 20 上的 Apache 2.4 未索引 documentroot 中的目录

[英]Apache 2.4 on Fedora 20 not indexing the directories in the documentroot

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

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

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

是权限问题吗?

问题出在软件更新上,在 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个小时......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM