This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "" Watch "" New topic

Gaurav Chaturvedi

Joined: May 06, 2008
Posts: 3
I have an Apache server running on my server. i want that if someone connevts to then he shuld be routes to a server say A and if someone connets to the then he should be routed to the B server is this possible in Apache. Please tell me how. If some document is there then please send me the doc for the same.
Johnson Abraham

Joined: May 31, 2004
Posts: 19
Reading your query i can say that you want have a distributed server. Load balancing can be done using Apache server in combination of tomcat servers. In this case Apache server wll sit on top of multiple instances of tomcat servers, and it will be responsible to route the requests to the tomcat server depending on the configurations you have done.

Go through a link below and you will get a fair bit of idea on what needs to be done.

Load Balancing
GeeCON Prague 2014