Azure Web Service根域有效,但www子域则不起作用

发布于 2025-01-21 08:48:31 字数 1986 浏览 3 评论 0原文

我有一个Azure Web应用程序,我从另一个注册服务商中映射了一个自定义域。根域工作正常,并使用(免费)Azure SSL证书获得。我无法获得www。子域工作。 (它也用Azure SSL证书确保。)

我遵循了这三篇文章,将方法详细介绍为映射现有的自定义DNS名称azure App Service to azure App Service href =“ https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=pepportal#create-a-free-afree-a-free-a-free-a-free-a-free-afree-certificate” “>在Azure App Service中添加TLS/SSL证书在Azure App Service中使用TLS/SSL绑定的自定义DNS名称

当我浏览示例Web应用程序Astroguru.com时,它会尽可能显示一个简单的爆炸服务器启动器页面。如果我浏览 www.astroguru.com ,我在地址栏中未找到一个页面说该网站不安全,如下所示:

下面是我完全按照上面的第一篇文章所述创建的DNS记录,其中包括(并参见下图):

  • 一个记录指向Web服务的IP地址。
  • 一个包含验证ID的txt记录,
  • www子域的记录 指向原始站点名称(例如Astroguru.azurewebsites.net)
  • 以及带有HostName asuid.www和The HostName assname aSuid的另一个TXT记录 相同的验证ID。

下图显示了来自Azure Portal的两个安全URL。

下图显示了Azure Portal中的两个私有密钥证书,这些证书固定了上述两个URL:

有人可以告诉我这里做错了什么吗?

I have an Azure web app to which I have mapped a custom domain from another registrar. The root domain works fine and is secured with a (free) Azure SSL cert. I have not been able to get the www. subdomain to work. (It is also secured with an Azure SSL cert.)

I have followed these three articles that detail the method to Map an existing custom DNS name to Azure App Service, Add a TLS/SSL certificate in Azure App Service, and Secure a custom DNS name with a TLS/SSL binding in Azure App Service.

When I browse to the example web app, astroguru.com, it displays a simple blazor server starter page as it should. If I browse to www.astroguru.com, I get a page not found with info icon in the address bar that says the site is not secure, as shown below:
enter image description here

Below are the DNS records that I have created exactly as described in the first article ref'd above, which include (and see image below):

  • an A record pointing to the IP address of the web service.
  • a TXT record containing the verification ID
  • a CNAME record for the www subdomain that the tutorials say must
    point to the original site name (e.g. astroguru.azurewebsites.net)
  • along with another TXT record with the hostname asuid.www and the
    same verification ID.
    DNS Records

The image below shows the two secured URLs from the Azure portal.
Custom Domain Names

The image below shows the two private key certs in the Azure portal that secure the two URLs above:
Privat Key Certs

Can someone tell me what I've done wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美煞众生 2025-01-28 08:48:31

不得不重新创建证书并重新重建。

Had to recreate the certificate and rebind.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文