jQuery in Action, 3rd edition
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
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 www.abc.com and there are two tomcat web servers each has a web application. When internet users browse www.abc.com, it will show web page from tomcat 1 and when users browse ww.abc.com/app1, 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: 2851

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

|Asking Good Questions|
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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: http://aspose.com/file-tools
subject: Question about setting up web server
It's not a secret anymore!