首页没找到,没有index.html文件,指到en目录下

解决方案 »

  1.   

    我也是出现这个问题,能不能说得详细点,怎么设index.html文件,因为我刚入门,谢谢!
      

  2.   

    你把htdocs目录下任何一个index.html.xxx的.xxx去掉在看看.
      

  3.   

    默认apache安装好以后是没有index.html这一页的,如果你设置了apache不可在没有默认页面的时候显示目录结构的话,你肯定得到的是无法访问的错误。所以进入apache的安装目录下的htdocs目录,将index.html.en修改成index.html,这样你就可以看到默认的首页了。自己写一个index.html放在那个目录也可以
      

  4.   

    只要你按下面的方法来配置基本上没什么问题。(嘿嘿~~记得加分噢~~)安装APACHE1.3.9(配置conf目录下的httpd.conf文件)
    1.#BindAddress * 改为 BindAddress 127.0.0.1
        #Servername new.host.name 改为 Servername localhost 
    2.让你的APACHE来支持PHP4. 加上下面这么几句:
         ScriptAlias /php4/ "C:/php4/"  (这个为你安装PHP4的路径)
         AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    AddType application/x-httpd-php4 .php4
    Action application/x-httpd-php4 "/php4/php.exe"
    3.设置Apache虚拟目录,加入以下行:
    Alias  /test/   "c:/php3/test/" 
    Alias  /php/   "d:/php/"
    4.增加默认启动文档:
       DirectoryIndex index.html
       DirectoryIndex index.htm 
       DirectoryIndex index.php 
       DirectoryIndex index.php3 
       DirectoryIndex index.php4 
    5.测试文件info.php: <? phpinfo(); ?> 
      在浏览器中输入http://localhost/info.php