Re: [問題] Apache如何不要再看到那個"It works"
※ 引述《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,
11/23 00:16
→
11/23 00:16,
11/23 00:16
→
11/23 00:17,
11/23 00:17
→
11/23 00:17,
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
11/23 22:06, 1F
討論串 (同標題文章)