为Azure Web App配置自定义域 [英] Configuring custom domain for Azure Web App

查看:132
本文介绍了为Azure Web App配置自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将自定义域配置为可以与我的Azure Web应用程序一起使用,并且可以使用,但不适用于www.

I configured my custom domain to work with my Azure Web app and it's working but NOT with www.

因此,mydomain.com指向myapp.azurewebsites.net,并且可以正常运行,但是如果我输入www.mydomain.com,则会出现错误404-找不到Web应用程序"错误.

So mydomain.com points to myapp.azurewebsites.net and it works but if I type www.mydomain.com, it gives me "Error 404 - Web App Not Found" error.

这是我配置的内容:

  1. 我的域已在GoDaddy上注册,并且我有一条A记录,指向我从Azure Web应用程序复制的IP地址.
  2. 我也有一个CNAME记录aververify,指向awverify.myapp.azurewebsites.net
  3. 我的CNAME记录指向myapp.azurewebsites.net
  4. 然后我通过新的Azure门户将mydomain.com和www.mydomain.com添加到自定义域刀片中

有什么想法可以使用mydomain.com而不是www.mydomain.com来启动我的Web应用程序吗?

Any idea I can pull up my web app using mydomain.com but NOT www.mydomain.com?

推荐答案

即使我在Web应用程序设置下的自定义域下输入了www.mydomain.com,由于某种原因它没有保存它,因此www是不起作用.

Even though I entered the www.mydomain.com under custom domain under my web app's settings, for some reason it didn't save it which is why www was not working.

这篇关于为Azure Web App配置自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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