I am working on multi tenant application in which we are having custom domains and sub-domains for client. Each client will have their own custom domain with multiple sub-domains. We are going to deploy multi tenant application using single azure cloud service.
Example of tenants:
- www.client1.com
- test1.client1.com
- test2.client1.com
- www.client2.com
- test3.client2.com
- test4.client2.com
I've never worked with SSL configuration and site bindings before but after doing plenty of research I am able to understood what needs to be done to configure multiple domains and SSL with Azure cloud service. Following is my understanding so far.
- We need wildcard certificates for each domain we are going to configure, so it will also include all sub-domains into it.
- Create A records for each root domain pointing to cloud service virtual IP.
- Upload and configure certificate on Azure cloud service.
- Need to perform site bindings for each domains.
Although following are my questions/doubts which are not cleared after visiting many blogs/links.
- Do I need to create CName for each sub-domains we are going to have for each tenant into my DNS provider? Or single A Records with *.Client1.com will work for all sub-domains under it?
- Do I need to bind each sub-domains into Azure portal to site and certificate? or wildcard domain name mapping will work?
I'd really appreciate any help.