多租户Azure的动态通配符CNAME [英] Multi-tenant Azure dynamic wildcard CName

查看:140
本文介绍了多租户Azure的动态通配符CNAME的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个多租户Azure的网站,这是人们注册并得到他们的子域的一种方式。我已经遵循了这里( HTTP的说明://www.stratospher .ES /博客/后/通配符子域 - 在Windows的蔚蓝)和管理来获得所有* .mydomain.com来CNAME根据(的 http://www.digwebinterface.com/

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/)

这是问题所在
如果我去tenant1.mydomain.com我会得到404服务器错误。但是如果我登录到Azure和去我的网站管理自定义域,并添加tenant1.mydomain.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?

感谢您的帮助。

更新
我最终使用的网站,而不是云服务。你并不需要再配置在控制面板自定义域名。只需简单地指向CNAME和你的好去。

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.

推荐答案

你检查出使用Amazon路由53配置在Azure中域映射,似乎有选择。

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

请参考以下链接


    在Windows Azure中
  1. 子域映射

  2. 添加自定义域为azurewebsite

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

这篇关于多租户Azure的动态通配符CNAME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆