I have a Windows Azure VM which is on the Azure-provided domain myserver.cloudapp.net
On this VM I'm running two separate webapps on a single Tomcat instance, bob and fred. I've set it up so they are accessible on myserver.cloudapp.net/bob and myserver.cloudapp.net/fred respectively.
However, I don't want the user to be aware these sites are running under different contexts on the same server. I have two domains registered, www.bob.com and www.fred.com that I want to use for each individual site instead.
This is where I'm coming unstuck - I can find plenty of resources on how to map a single custom domain to a single Azure VM domain, but google as I might I can't find anything on how to map one or more custom domains to particular contexts under a single Azure domain.
I'm pretty new to webserver and DNS configuration etc, so I'm not even too sure on what level I should be looking to do this kind of mapping. Perhaps it's something I can do with rewrites on the VM itself, or perhaps it's better to do it in the DNS settings of my custom domains. I'm basically learning as I go with this stuff, so any pointers, tricks, hints, or links to tutorials so I can get further with this would be most appreciated.
Of course, I could just go the 'dumb' way and pay for two Azure VMs but these websites won't require much grunt to run and that just feels like admitting failure ;-)