gpt4 book ai didi

asp.net - 如何在 Azure DNS 区域中配置 URL 重定向

转载 作者:行者123 更新时间:2023-12-03 03:03:36 24 4
gpt4 key购买 nike

我们在 Azure DNS 区域下有多个网站

ourbusiness.net

给定多个 Web 应用程序,例如 So:

foo.ourbusiness.net

bar.ourbusiness.net

我们想添加 URL 重定向(正确的术语?),以便导航到以下内容:

foos.ourbusiness.net

thafoo.ourbusiness.net

morefoo.ourbusiness.net

全部重定向到:

foo.ourbusiness.net

其他应用程序(例如 bar、baz 等)也需要同样的功能,而不仅仅是 foo.ourbusiness.net。

我们不需要别名,浏览器导航需要导航到浏览器 URL 中的 foo.ourbusiness.net。

我认为可以使用多个 A 记录和 Ptr 记录的组合。这需要静态 IP 或虚拟 IP 地址(但是可行。)

我们使用 SSL。

在 Azure 中实现上述要求的最直接方法是什么?谢谢..

最佳答案

根据你的要求,我认为最直接的方法是设置多条A记录。

它确实需要 Web 应用程序的 IP 地址,并且此解决方案需要一些成本。然而,

NOTE: The IP address may change if you delete and recreate your web app, or change the web app mode back to free.

您可以在本文档中找到有关如何获取 Web 应用程序 IP 的更多详细信息:Map an existing custom DNS name to Azure Web Apps

所以,如果您担心这个问题,我建议您配置 CNAME。

关于asp.net - 如何在 Azure DNS 区域中配置 URL 重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46696747/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com