其实"d:\apache group\apache\htdocs"只是Apache默认的Web服务主目录,你可以更改配置中的documentroot项改变此主目录,任何文件夹都可以。

解决方案 »

  1.   

    #在httpd.conf中加入
    Alias /www "d:/www"
    <Directory "d:/www">
    #最好不要整盘共享,假设共享d:\www ;同样,哪个盘都行。
        AllowOverride All
        Options All
    </Directory>
      

  2.   

    关键在于
    Alias /www "d:/www"如果写成
    Alias /www/ "d:/www/"
    也可以.
    只是访问的方式不同:  http://localhost/www/index.htm
                                              ~~~~~~~~~
    而 Alias /www "d:/www"
    用 http://localhost/www 访问就行了,当然你需有默认文档如 index.htm
      

  3.   

    创建虚拟目录~~看看apache默认配置中已经配好的几个虚拟目录吧<IfModule mod_alias.c>    Alias /icons/ "D:/Apache Group/Apache/icons/"    <Directory "D:/Apache Group/Apache/icons">
            Options Indexes MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>    Alias /manual/ "D:/Apache Group/Apache/htdocs/manual/"    <Directory "D:/Apache Group/Apache/htdocs/manual">
            Options Indexes FollowSymlinks MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>    ScriptAlias /cgi-bin/ "D:/Apache Group/Apache/cgi-bin/"    <Directory "D:/Apache Group/Apache/cgi-bin">
            AllowOverride None
            Options ExecCGI Indexes
            Order allow,deny
            Allow from all
        </Directory></IfModule>应该就很明白了~~自己改试试看~~:)
      

  4.   

    可以开端口,80就是WBE默认的192.168.0.50
    Listen 80
    Listen 8080
    Listen 100 <VirtualHost 192.168.0.50:100> 
    DocumentRoot d:/index
    DirectoryIndex index.php index.shtml index.cgi 
    </VirtualHost> <VirtualHost 192.168.0.50:8080> 
    DocumentRoot d:/oratest
    DirectoryIndex index.html
    </VirtualHost>