对,多写几个就行了
<VirtualHost 10.1.3.138>
    ServerAdmin [email protected]
    DocumentRoot "D:/JSP/webdocs/"
    ServerName www.abc.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost><VirtualHost 10.1.3.138>
    ServerAdmin [email protected]
    DocumentRoot "D:/JSP/webdocs1/"
    ServerName www.abc1.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost><VirtualHost 10.1.3.138>
    ServerAdmin [email protected]
    DocumentRoot "D:/JSP/webdocs2/"
    ServerName www.abc2.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

解决方案 »

  1.   

    哪位好心人帮小弟看看Apache2和Tomcat4整合的问题出在哪里?
    我用的是Apache2.0.48  Tomcat4.1.29  mod_jk2-2.0.43.dll  j2sdk1.4.1_02整好后JSP能用了,但PHP用不起来了(整合之前PHP是能用的),然后把apache中的httpd.conf中最后整合时加入的
       LoadModule jk2_module modules/mod_jk2-2.0.43.dll 
          <VirtualHost 127.0.0.1>       ServerAdmin [email protected]       DocumentRoot "C:/Program Files/Apache Group/Tomcat 4.1/webapps" 
         
          ServerName dummy-host.example.com       DirectoryIndex index.htm index.html index.jsp       ErrorLog logs/dummy-host.example.com-error_log       CustomLog logs/dummy-host.example.com-access_log common       </VirtualHost> 
    删掉然后分别重起apache tomcat 后php又能用了,可jsp不能用了!大家帮忙看看我可能什么地方出错了?