Reputation: 115
Say I have the following scenario:
3 different dommains
But I have only one AppService:
which is a MVC application and I have three different websites which points to the following URLs:
I want to map it in a way where trafic from domains A, B and C to reach respectively my application routing WebSiteA, WebSiteB and WebSiteC.
This is the first time I am trying to achieve something like this. I was wondering, is the Azure DNS zones the way to go, or is there a way to do it directly on my domain manager panel(in this case GoDaddy)? If so, would you please give me a simple example on how to achieve this?
OBS: I will create all this mappings and routings on the fly, so a solution coupled to my code will not work.
Upvotes: 1
Views: 841
Reputation: 11601
If you don't have a strict restriction on creating a new web app. I suggest you create new web apps for WebSiteB, WebSiteC, and they share the same app service plan with WebSiteA, because all web apps inside the same service plan share the resources of the plan. Let's say you will have
myservera.azurewebsites.net
myserverb.azurewebsites.net
myserverc.azurewebsites.net
Next, you can create CNAME record to map your custom domains to each web app.
I hope this helps.
Upvotes: 1