Solve the problem after the Apache + Tomcat cluster-Linux Enterprise Application-Linux server application information. For details, refer to the following section. The problem is as follows:
System: Ubuntu Server 10.04
Today, we created a cluster for apache and tomcat, and used apache to forward requests to two tomcat servers to achieve load balancing.
Apache is the system source installed apache2, two tomcat is unzipped version, the integration module is derived from the libapache2-mod-jk with, I successfully deploy the cluster, apache successfully forwarded the request to two tomcat servers to achieve load balancing.
The younger brother wants to ask, after that, bind two tomcat web files in the webapps directory and bind two tomcat domain names. How can I configure them?
I tried to add the domain name to be bound to the server. xml configuration file of tomcat and the full path of the webpage file. However, the webpage in the directory will not appear when accessing the domain name, but it is necessary to add a path after http:/www.abc.com /.
Server. xml configuration is as follows:
CODE:/Host>
UnpackWARs = "true" autoDeploy = "true">
Directory = "logs" prefix = "localhost_log." suffix = ". TxT"
Timestamp = "true"/>
Reloadable = "true" crossContext = "true">
|