作者rayko (沒有目標的雷口)
看板Web_Design
標題Re: [問題] Apache如何不要再看到那個"It works"
時間Fri Nov 23 21:54:08 2007
※ 引述《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
1F:→ TonyQ:這應該是deafult值中,有另一個網頁 (可能是index.htm ) 11/23 00:16
2F:→ TonyQ:優先權排在 index.html之前 , 你可以刪掉那個網頁 , 也可以 11/23 00:16
3F:→ TonyQ:指定index.html當 default index , 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
5F:推 kene:你有用 Apache Monitor 重新載入設定過嗎? 11/23 22:06