I have a web app hosted on Azure App Service under my domain app.example.com
. Customers access their own content using the following paths:
app.example.com/customer1
app.example.com/customer2
etc..
I have created a CNAME record for app.example.com -> myazureapp.azurewebsites.net
. And that part works fine.
But I would also like to allow customers to use their own domains by telling them to set up a CNAME record with their DNS provider like:
app.customer1domain.net -> app.example.com
I'm trying to figure out how to configure Azure to allow this kind of CNAME pointing. Will I have to configure each customer domain in Azure as a valid host header? If so, can this be automated?
In IIS I was able to pull this off by setting up a wildcard binding with just a simple *
. How can I do this in Azure?
This document mentions what I'm trying to acheive, but not how (Under "Option 4 — Enabling Tenants to Use Custom Domains"): https://msdn.microsoft.com/en-us/library/hh534477.aspx?f=255&MSPPError=-2147217396
app.customer1domain.net --> myazureapp.azurewebsites.net
, right? If you want this, you can just add multiple hostname in Azure portal for your App. – Wayne Yang