修改$apache/conf/httpd.conf
将里面的index.html 修改成index.php
cd ../bin
./apachectl restart
就ok了!

解决方案 »

  1.   

    多了一个 "/",怎么样才能让系统自动加上 “/”呢WINDOWS是自动加的,linux我还真不知道不晓得是不是配置文件的这个部分     # Note that if you include a trailing / on fakename then the server will
        # require it to be present in the URL.  So "/icons" isn't aliased in this
        # example, only "/icons/".  If the fakename is slash-terminated, then the 
        # realname must also be slash terminated, and if the fakename omits the 
        # trailing slash, the realname must also omit it.
        #
        Alias /icons/ "/apache/icons/"    <Directory "/apache/icons">
            Options Indexes MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>这个是有关虚拟目录的设置,改一下<directory 里的参数看看
      

  2.   

    WINDOWS也不会自己加.Apache的默认安装就是有这种事的.我也不知道怎么解决.