是否可以将自定义域从一个Web应用程序移动到另一个? [英] Is it possible to move custom domain from one web app to another?

查看:79
本文介绍了是否可以将自定义域从一个Web应用程序移动到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Web应用程序webapp-a配置了一个自定义域www.abc.com,并且我希望在不停机的情况下将其传输到webapp-b.

I have a custom domain www.abc.com configured for web app webapp-a, and I'd like to transfer it to webapp-b without downtime.

如果我尝试将域添加到webapp-b中,我将得到

If I try to add the domain to webapp-b, I am getting

主机名www.abc.com已分配给另一个Azure网站:webapp-a

The host name www.abc.com is already assigned to another Azure website: webapp-a

有没有办法让webapp-a继续处理请求,直到DNS缓存过期?

It there a way to let webapp-a continues to serve the requests, until the DNS cache expires?

域具有基于IP的SSL绑定,而DNS正在缓存虚拟IP.

The domain has IP based SSL binding, and the DNS is caching the virtual IP.

推荐答案

我遇到了同样的问题,并且能够以棘手的方式解决它.

I faced the same issue, and was able to solve it in a tricky way.

我创建了新的App Service Plan(以前称为Web Hosting Plan),并为其分配了新的" Web App(您可以通过新的门户网站进行操作,也可以在创建Web App的过程中创建Service Plan).

I created new App Service Plan (previously known as Web Hosting Plan), and assigned "new" Web App to it (you can do it via new portal, or you can create Service Plan during Web App creation).

然后,我能够在不同的托管计划中为Web Apps分配相同的主机名.

Then, I was able to assign the same host name to Web Apps in different hosting plans.

考虑到这一点,我认为这是合乎逻辑的:很有可能服务计划已映射到物理IIS计算机,并且出于明显的原因,您不能在同一个IIS中拥有两个具有相同主机名的站点.

Thinking about this, I feel it logical: most probably Service Plan is mapped to physical IIS machine, and you cannot have two sites with the same host name in the same IIS for the obvious reason.

从一个DNS迁移到另一个DNS后,您可以删除未使用的服务计划(因为您基本上是分别为每个服务付费).

After migration from one DNS to another is done, you can remove unused Service Plan (as you basically pay for each separately).

这篇关于是否可以将自定义域从一个Web应用程序移动到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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