简体   繁体   中英

How to redirect the request from tomcat server to another tomcat server

假设有2个运行的tomcat服务器,例如tomcat 1(IP地址:101.155.55.15)和tomcat 2(IP地址:101.155.55.16),用户将访问tomcat 1中的某些资源,Tomcat 1应该将请求重定向到tomcat 2,然后Tomcat 2应该将响应发送回tomcat 1,我不知道如何解决此问题。

You have following two choices :

  1. Either purchase as many public address
  2. Put one server front and delegate these request.

Applying second approach we put Apache httpd web server in front of all others ip of servers. so only one public IP is enough. Apache httpd webserver communicate to Tomcat sever through AJP (Apache JServ Protocol) protocol.

Reference Link : Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM