aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2709
    
    5

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: 39547
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about setting up web server
 
Similar Threads
Servlet Alias(urgent)
Partly invisible address
ServletOutputStream truncated only when invoked remotely
Redirect or DNS alias?
Domains of cookie query