简体   繁体   English

Azure用于多个Azure网站的同一域

[英]Azure Same domain used for multiple Azure websites

Our DNS/webserver was setup so www.mysite.com went to the website, and mysite.com went to the service setup via DNS. 我们的DNS /网络服务器已安装,因此www.mysite.com转到了网站,而mysite.com则通过DNS进入了服务设置。 This service is used by a wpf application with multiple clients all with different versions. wpf应用程序使用具有多个不同版本的多个客户端的此服务。 So just changing the service url in the wpf application is not going to work as clients just don't upgrade and some are running on older versions and won't upgrade. 因此,仅更改wpf应用程序中的服务url不会起作用,因为客户端只是不升级,而某些客户端正在较旧的版本上运行并且不会升级。

Is there anyway to replicate this in Azure? 无论如何,有没有要在Azure中复制此内容? Since you need to verify the domain by creating a cname, I can't have the same cname point to different addresses. 由于您需要通过创建cname来验证域,因此我不能将相同的cname指向不同的地址。 So any ideas on how to do this with Azure? 那么关于如何使用Azure做到这一点的任何想法?

Would like to keep the service separate from the website. 希望将服务与网站分开。

EDIT: We have hundreds of subdomains, one for each client. 编辑:我们有数百个子域,每个客户端一个。 So client1.example.com, client2.example.com, www.example.com, etc. And the service example.com. 因此,client1.example.com,client2.example.com,www.example.com等。还有服务example.com。 The service url is coded into the legacy wpf application so can't change. 服务网址已编码到旧版wpf应用程序中,因此无法更改。 The wcf service is currently a app service was well. wcf服务当前是一个很好的应用程序服务。

www.example.com and example.com are distinct and separate domains. www.example.com和example.com是不同的域。 It is perfectly feasible to have example.com point to one Azure site and www.example.com to point to another. 让example.com指向一个Azure网站而www.example.com指向另一个Azure网站是完全可行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM