views:

70

answers:

1

I have my domain say "example.com" (java, GlassFish Web Server)

Now I have 3 application.. say A,B,C.

Now what I want is, if user hit a.example.com OR example.com/X then A application should get invoked. similarly for B and C. b.example.com or example.com/B, c.example.com or example.com/C.

like mail.google.com news.google.com.

How to configure this?

I couldn't query it in Google as I didn't know how to query for this exactly. So posted here. Thankx guyz in advance.

A: 

I believe you would have to configure your domain name for that. If your domain is hosted by someone else, like for example GoDaddy.com, you can use their control panel to forward for example a.example.com to example.com/X.

This seems like it would go under the category of subdomain forwarding.

QAH
what is i want to configure it in my locally running glassfish?
org.life.java
Well, I have never used glass fish, but I have two questions. First of all, who is hosting your domain name? Is it an external site, or are you running your own domain server? Second, are you able to access the site using the patter example.com/X?
QAH
well for now i want to configure it in my local machine..
org.life.java
Hmm, well I really don't know how to setup domain's on my own server (since I use GoDaddy.com for my domain name). Still, I would say you should look at how to do subdomains and subdomain forwarding. Like for example, with my domain, I have different subdomains linking to different sections of my site. Like one second is for example, example.com/games. I then, using GoDaddy.com, added a subdomain games.example.com. I then forwarded it to example.com/games. I don't know if it will help, but try this forum: http://www.linuxforums.org/forum/servers/27121-how-set-up-subdomains.html
QAH
nop you got the thing wrong..consider the case of blogspot.com the domain is the one blogspot.com only but suppose i register in it with xxx then i will have xxx.blogspot.com like wise here it won't be the subdomain (i can smell) , but its some thing different ...how to achieve this ??
org.life.java