File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes Question about setting up web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Question about setting up web server" Watch "Question about setting up web server" New topic

Question about setting up web server

David Cheong

Joined: Oct 26, 2004
Posts: 9
Dear all,

I would like to ask if it is possible to have one dns domain serving two web servers? for example, my domain is and there are two tomcat web servers each has a web application. When internet users browse, it will show web page from tomcat 1 and when users browse, it will be showing web pages from tomcat 2.
Is it possible to config that? if yes, it is config in the tomcat aspect or network aspect?

Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2846

Not sure if you are trying to do load balancing in Tomcat.

|Asking Good Questions|
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
I think this should be achievable if you front the Tomcats with an Apache httpd running the mod_rewrite module (which is a commonly used module that may even be part of the standard Apache installation these days). (Assuming the approach Amit points to doesn't work out.)
I agree. Here's the link:
subject: Question about setting up web server
jQuery in Action, 3rd edition