作者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