wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Question about setting up web server" Watch "Question about setting up web server" New topic
Author

Question about setting up web server

David Cheong
Greenhorn

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?

Thanks.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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


SCJP, SCWCD.
|Asking Good Questions|
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42374
    
  64
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.)


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about setting up web server