Configuration of the virtual host of JBoss3.0-Tomcat4.03

zhaozj2021-02-16  49

1. Please open the HOSTS file under the Winnt / System32 / Drivers / etc directory, add the machine name you want to virtual, such as I added this.

127.0.0.1 www www.www.systemtekgz.com.cn

Here at www.systekgz.com.cn is my domain name.

WWW is a virtual name

And my machine's own name is FANGM, in the domain is fangm.www.systekgz.com.cn

2. Open the Tomcat4-Service.xml file in the server / default / deploy directory in the JBoss-Tomcat installation directory, the original file is like this

The default value is what of the jboss / catalina bundle where there

JAKARTA-TOMCAT-4.0.3-Le-JDK14 Is Included as jboss_dist / catalina

->

]>

->

Name = "jboss.web: service = EmbeddedCatalinasx">

& Catalina.home;

Prefix = "localhost_access" suffix = ".log"

Pattern = "Common" Directory = "../server/default/log" />

Port = "8080" MINPROCESSORS = "3" maxprocessors = "10" enablelookups = "True"

Acceptcount = "10" debug = "0" connectionTIMEOUT = "60000" />

First, find , JBoss-Tomcat is released under localhost, you change to your machine name, here I changed here Note that it is not a virtual name.

Second, add as follows

www.www.systekgz.com.cn

Note that and prefix = "www_access" WWW is a virtual machine name

Of course, you can also do not modify to change here to

The complete document has been changed as follows:

The default value is what of the jboss / catalina bundle where there

JAKARTA-TOMCAT-4.0.3-Le-JDK14 Is Included as jboss_dist / catalina

->

]>

->

Name = "jboss.web: service = EmbeddedCatalinasx"> & catalina.home;

Verbositylevel = "trace" category = "org.jboss.web.localhost.Engine" />

Prefix = "localhost_access" suffix = ".log"

Pattern = "Common" Directory = "../server/default/log" />

www.www.systekgz.com.cn

Port = "8080" MINPROCESSORS = "3" maxprocessors = "10" enablelookups = "True"

Acceptcount = "10" debug = "0" connectionTIMEOUT = "60000" />

Third, when you publish. UAR applications, you find a package. War's web app is, please add the following in the jboss-web.xml file.

/

www.www.systekgz.com.cn

You can visit http: // www.www.systekgz.com.cn:8080. If you appear

Apache Tomcat / 4.0.3 - HTTP Status 500 - No Context Configured to Process This Requestine This is because you did not release applications.

转载请注明原文地址:https://www.9cbs.com/read-25262.html

New Post(0)