Fedora 20 上的 Apache 2.4 未索引文档根目录中的目录
Apache 2.4 on Fedora 20 not indexing the directories in the documentroot
我在 Fedora 上遇到了 apache 问题,问题如下。
我最近有时保持原样,比方说一年,我一直在进行软件更新,但我预计配置没有改变,但他们确实改变了。
更具体地说,一年前我的服务器上有两个项目,虚拟主机设置为索引,这样我就可以在服务器启动时将项目视为目录并快速进入每个项目,但是知道配置有点丢失或被覆盖,因为当我在浏览器中键入 localhost 时,我看到一个页面来自 /urs/share/noindex insted 我的项目目录,我什至无法访问项目内的目录,因为它给了我 "permission denied"..
是否是权限问题?
问题出在软件更新上,在 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 小时...
我在 Fedora 上遇到了 apache 问题,问题如下。
我最近有时保持原样,比方说一年,我一直在进行软件更新,但我预计配置没有改变,但他们确实改变了。
更具体地说,一年前我的服务器上有两个项目,虚拟主机设置为索引,这样我就可以在服务器启动时将项目视为目录并快速进入每个项目,但是知道配置有点丢失或被覆盖,因为当我在浏览器中键入 localhost 时,我看到一个页面来自 /urs/share/noindex insted 我的项目目录,我什至无法访问项目内的目录,因为它给了我 "permission denied"..
是否是权限问题?
问题出在软件更新上,在 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 小时...