apache 默认页面

安装了apache和php及mysql.打开网站需要输入index.php才能打开.
在apcahe中设置一下就可以直接默认打开 index.php.
比如我要打开localhost/index.php,直接输localhost,就可以,不用全输入.
做法如下: 找到apache下的配置文件httpd.conf,找到DirectoryIndex index.html,
在后面添上index.php
<IfModule mod_dir.c>
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex default.html
DirectoryIndex default.htm
</IfModule>

posted @ 2008-04-10 10:16  二宝的博客  阅读(580)  评论(0)    收藏  举报