Re: [問題] Apache如何不要再看到那個"It works"

看板Web_Design作者 (沒有目標的雷口)時間16年前 (2007/11/23 21:54), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/3 (看更多)
※ 引述《rayko (沒有目標的雷口)》之銘言: 我剛安裝完 沒有動過httpd.conf 把網頁東西放到/htdocs是可以連上看到 可是網址就是一定要打 http://localhost/index.html 如果打http://localhost/ 就會出現一開始的測試畫面 (空白只有It Works!兩字) 請問如何設定Apache使得我打http://localhost/ 就自動給我http://localhost/index.html的頁面呢? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.247.106

11/23 00:16,
這應該是deafult值中,有另一個網頁 (可能是index.htm )
11/23 00:16

11/23 00:16,
優先權排在 index.html之前 , 你可以刪掉那個網頁 , 也可以
11/23 00:16

11/23 00:17,
指定index.html當 default index ,
11/23 00:17

11/23 00:17,
這篇有講到 conf的設定 找indexes看 http://0rz.tw/093mQ
11/23 00:17
看了一下那個網站 節錄其中有關首頁的部分 # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi </IfModule> 首頁設定,預設首頁。 我在我的httpd.conf裡面沒有 <IfModule mod_dir.c>這一個東西耶 (加了也沒用) 請問有大大知道怎麼解決最上面的首頁問題嗎? 我把我的httpd.conf貼在下一篇 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.66.176.180

11/23 22:06, , 1F
你有用 Apache Monitor 重新載入設定過嗎?
11/23 22:06, 1F
文章代碼(AID): #17Hjk1sU (Web_Design)
文章代碼(AID): #17Hjk1sU (Web_Design)