Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hosting site with different names.

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am working on web application which will be hosted soon. Still it is in design phase. The requirement is there will be only one application with two entry points. Say

www.chaitanya.com
www.karthik.com

These two sites will be registered with the same IP in the DNS server.

Is this possible?

For example yahoo also has the same functionality. When I type

www.mail.yahoo.com or
www.ymail.com or
www.yahoomail.com

All these requests route to only one server. So I hope this is possible. I am not sure anyhow.

If this is possible then I have another question. At the server end, can I know what address the client typed to send the request? I want this because if the client types www.chaitanya.com I have to show him a welcome page, when he types www.karthik.com I have to show him another welcome page.


Thank you all in advance. Good day
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I think I got the answer
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for sharing your answer so that other members that might have the same question will benefit.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Thank you for sharing your answer so that other members that might have the same question will benefit.
Do you really mean it? Do you think someone will have the same question. I think this is the most dumb question I asked till now.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I mean it. An aspect of being part of a community is sharing knowledge. What you've done here is to say "I've got my answer, the rest of you can figure it out for yourselves."
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic