Jboss3.0-Tomcat4.03的虛擬主機的配置 1、 請你首先打開WINNTsystem32driversetc目錄下的hosts文件,在里面加入你想要虛擬的機器名,如我是這樣加的 127.0.0.1 www www.www.systekgz.com.cn 在這里www.systekgz.com.cn是我的域名。 www是虛擬名 而我機器的本身名字是fangm,在域中的就是fangm.www.systekgz.com.cn 2、 打開jboss-tomcat安裝目錄下的serverdefaultdeploy的目錄中的tomcat4-service.xml文件,原來的文件是這樣的 <?xml version="1.0" encoding="UTF-8"?> <!-- Set catalina.home to the location of the Tomcat-4.x dist. The default value is that of the JBoss/Catalina bundle where the jakarta-tomcat-4.0.3-LE-jdk14 is included as jboss_dist/catalina --> <!DOCTYPE server [ <!ENTITY catalina.home "../catalina"> ]>
<!-- The service configuration for the embedded Tomcat4 web container --> <server>