簡體   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