顯示 OpenSuse 12.1/Apache2 目錄而不是 index.html 頁面

顯示 OpenSuse 12.1/Apache2 目錄而不是 index.html 頁面

為什麼不顯示index.html頁面(它可​​以工作),而是顯示目錄列表頁面。設定均為安裝預設值。 Index.html 位於 /svr/www/htdocs

答案1

您可以複製貼上您的伺服器設定 - 特別是 DOcumentRoot 嗎?另外您的 DirectoryIndex 設定為多少?

如果您將 index.html 指定為 DirectoryIndex,如下所示:

DirectoryIndex index.html

然後請求http://someweb/應該返回http://someweb/index.html如果存在,則列出目錄,如果不存在則列出目錄。所以我猜這跟類似的事情有關

相關內容