【问题标题】:Azure App Service : Can't Add custom domainAzure 应用服务:无法添加自定义域
【发布时间】:2022-06-27 18:26:41
【问题描述】:

注册 DNS 区域后,我尝试验证我的域以添加自定义域,但仍然无法工作。最后一行出现错误,内容为“验证域所有权,使用您的域创建 TXT 和 A 记录使用以下配置的 DNS 提供商”。

我注册的DNS是ftq-test.biz

我还添加了2条记录如下:

  • A:主机:@,TTL:3600,值:我的IP
  • TXT:主机:asuid,TTL:3600,值:自定义域验证 ID。

我错过了什么步骤? 请帮我。 enter image description here enter image description here

【问题讨论】:

    标签: azure-web-app-service


    【解决方案1】:

    要使 DNS 区域适用于您的域,您需要确保您的域使用 Azure DNS 作为其名称服务器。通常,这是在 GoDaddy 或 Namecheap 等域名注册商处配置的。

    要检查域设置是否正确,您可以使用NS Lookup。结果应将 Azure 显示为您的域的名称服务器:

    检查您的域名的名称服务器,似乎尚未设置名称服务器。

    编辑:
    好像你还没有注册那个域呢。您需要先注册(购买)域,然后将其配置为使用 Azure DNS 作为其名称服务器,然后才能将其作为自定义域名连接到您的 Azure 应用服务。

    【讨论】:

    • 非常感谢您的建议。我已经做到了。希望好事降临。
    【解决方案2】:

    这是我的清单,用于使用我的 Godaddy 域之一设置 azure 托管应用服务:

    Example assuming appservice is called myAppService  and your desired sub-domain at front of url is mySubDomain  
    1.  Go to azure portal.  Navigate to the appservice.
    2.  click on 'Custom domains' blade
    3.  grey + symbol is actually a button, 'Add custom domain'
    4.  type in full url e.g. mySubdomain.mydomain.co.uk   Validate.
    5.  Copy the Custom Domain Verification ID should be like A5A80F074A83A677E103B749F31237B08B630D5D1B0D79040E410FCDF802BAF8
    6.   godaddy.com.   login.    top right, choose richard then 'My Products'  
    7.  cphi.co.uk click DNS on the right
    8.  Add.  TXT.
    1.  Name = asuid.mySubdomain  (the subdomain)
    2.  Value = A5A80F074A83A677E103B749F37507B08B630D5D1B0D72050E410FCDF801AAF8
    3.  TTL = 1 hour
    4.  Add record.
    9.  Add.  CNAME.   
    1.  Name = the subdomain you wish to use e.g. mySubdomain 
    2.  Value = the azuresites url e.g. myAppService.azurewebsites.net
    3.  TTL 1 hour
    4.  Add record
    10. Go back to to azure and Validate again it should work.
    11. Add custom domain
    12. It should appear within Custom Domains blade but with SSL state Not Secure
    13. Click Add Binding under the SSL Binding column
    14. The panel that appears on the right is buggy it often says you have no certificates but if you click custom domain to 'Choose domain' then back again, your certificate appears
    15. Choose certificate (not the expired one)
    16. TLS / SSL type is 'SNI SSL'
    17. Add Binding
    18. Should now show up as secure
    19. Click the slider that says HTTPS only to true
    20. You are done.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-04
      • 2019-08-30
      • 1970-01-01
      • 1970-01-01
      • 2020-05-17
      • 2021-02-07
      • 1970-01-01
      相关资源
      最近更新 更多