Multi-tenant Azure dynamic wildcard CName

孤街浪徒 提交于 2019-12-10 23:39:49

问题


I am trying to create a multitenant Azure website which is a way for people to sign up and get their sub-domains. I have followed the instructions in here (http://www.stratospher.es/blog/post/wildcard-subdomains-in-windows-azure) and manage to get all *.mydomain.com CNAME to mydomain.azurewebsites.net according to (http://www.digwebinterface.com/)

Here is the problem if I go to tenant1.mydomain.com I'll get the 404 server error. However if I log in to Azure and go to my website Manage custom domains and add the tenant1.mydomain.com then everything would work fine.

The idea behind the wildcard is I can add tenant pragmatically/dynamically. Is there anyway to automated this process or add a wildcard in the azure Manage custom domains. Is there any difference between app cloud service and website?

Thanks for your help

Update I end up using cloud services instead of websites. You don't need to configure the custom domain names in the control panel anymore. Just simply point cname and your good to go.


回答1:


Did you check out the use of Amazon Route 53 to configure the domain mapping in Azure, it seems that there are options.

Please refer the following links

  1. Sub domain mapping in windows azure
  2. Add custom Domain to azurewebsite


来源:https://stackoverflow.com/questions/19888549/multi-tenant-azure-dynamic-wildcard-cname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!