• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

one domain , two different app on two different hosting

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have a domain ,say , www.yewint.com and I have a server,say, server A. I also have another server named B. Two different apps ,appA and appB are running on each server. My requirement is that when I request "www.yewint.com" , I want to go to appA on server A . But appB on server B for "www.yewint.com/b" . is it possible? and is there anyway to do that?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "www.yeint.com" part is the server's fully qualified domain name, which indicates which server accepts the requests and what domain it's located in. So it's fundamentally impossible to define that a request should be handled by another server by supplying a "magic" context name.

However, using things like Apache's mod_rewrite system will allow requests that were originally send to the "www" machine to be rerouted to another machine for handling. That kind of stuff is done all the time.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any webservice that can internally redirect our request to another server without any changes in url ?
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so ,with apache mod_module , can i replace domain with another one,I mean, when i request www.appA.com , I want to see appA pages ,but the url is www.yewint.com/a. is it possible?
 
reply
    Bookmark Topic Watch Topic
  • New Topic