2015-11-05 52 views
-1

我在Fedora上遇到了apache問題,問題如下。Fedora 20上的Apache 2.4沒有對文檔目錄進行索引

我已經離開了我,因爲有時候最近我沒有接觸過,比方說一年,我一直在做軟件更新,但我預計配置沒有改變,而是他們做的。

更具體的說,一年前我在服務器上有兩個項目,並且虛擬主機被設置爲索引,以便我可以在服務器啓動時將該項目看作目錄,並快速進入每個項目,但知道配置是丟失或覆蓋,因爲我看到一個頁面來自/ urs/share/noindex insted我的項目目錄時,我在瀏覽器中鍵入本地主機,我甚至不能訪問項目內的目錄,因爲它給了我「權限被拒絕」 ..

這是一個權限問題嗎?

回答

0

的問題是與軟件更新,在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小時...