在Windows Azure中的子域映射 [英] Sub domain mapping in windows azure

查看:212
本文介绍了在Windows Azure中的子域映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在任务管理系统工作使用VS 2010,WCF和Windows Azure的。这是一个简单的个性化的任务管理应用程序。该应用程序允许用户组织和共享他们的任务。
不会有。在我的项目用户。如果有人「订阅应用程序,那么我们就需要创建一个空间他一个子域或子文件夹。我怎样才能实现在Windows Azure中的子域映射。什么是子域映射的真正优势在哪里?

I am working on a Task Management System using VS 2010, WCF and Windows Azure. This is a simple personalized task management application. The application allows users to organize and share their task. There will be no. of Users in my project. If somebody "Subscribes" to the application, then we will need to create a "Space" for him with a Subdomain or "Subfolder. How can I implement sub domain mapping in windows azure. What is the real advantage of sub domain mapping?

问候,
Ranish

Regards, Ranish

推荐答案

只是协助了一下其他答案。

Just to assist a bit on the other answers.

天青对请求路由到您的实例的主要机制是使用CNAMEDNS记录 - http://en.wikipedia.org /维基/ CNAME_record

Azure's main mechanism for routing requests to your instance is to use "CNAME" DNS records - http://en.wikipedia.org/wiki/CNAME_record.

这些CNAME记录基本上是告诉客户端(浏览器)www.mydomain.com是的别名的为myapp.cloudapp.net

These CNAME records basically tell the clients (browsers) that www.mydomain.com is an alias for myapp.cloudapp.net

<击>可悲的是你不能CNAME通配符根据您的DNS主机上可能无法通配符CNAME记录(见<一href=\"http://serverfault.com/questions/44618/is-a-wildcard-cname-dns-record-valid\">http://serverfault.com/questions/44618/is-a-wildcard-cname-dns-record-valid),所以为了多个子域映射到相同的Azure实例,那么你可能需要设置多个CNAME记录 - 每个子要重新路由 - 即当您注册用户的新,那么你需要添加一个新的CNAME记录映射new.mydomain.com来myapp.cloudapp.net

Sadly you cannot CNAME a wildcard Depending on your DNS host you may not be able to wildcard CNAME records (see http://serverfault.com/questions/44618/is-a-wildcard-cname-dns-record-valid), so in order to map multiple subdomains to the same Azure instance, then you may need to set up multiple CNAME records - one for each subdomain you want to reroute - i.e. when you sign up customer "new", then you need to add a new CNAME record mapping "new.mydomain.com" to myapp.cloudapp.net

这乔安妮斯和JMAC这两个建议都建议设立这些映射外部服务。对于一些其他的选择 - 和亚马逊的一些C#示例code - 看到这个帖子<一个href=\"http://computerone.co.nz/community/discussion/29/amazon-route-53-dns-request-in-c-using-the-rest-api/p1\">http://computerone.co.nz/community/discussion/29/amazon-route-53-dns-request-in-c-using-the-rest-api/p1 (有也可在<一个负担得起的C#库href=\"http://www.proactiveit.co.nz/Route53/R53Connect/\">http://www.proactiveit.co.nz/Route53/R53Connect/)

The two suggestions from Joannes and jmac both suggest external services for setting up those mappings. For some other options - and some Amazon C# sample code - see this post http://computerone.co.nz/community/discussion/29/amazon-route-53-dns-request-in-c-using-the-rest-api/p1 (there's also an affordable C# library available on http://www.proactiveit.co.nz/Route53/R53Connect/)

这篇关于在Windows Azure中的子域映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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