【问题标题】:Failed to config SSL in Heroku在 Heroku 中配置 SSL 失败
【发布时间】:2019-07-03 18:33:30
【问题描述】:

我在 Google 域购买了一个域名。 (例如:example.net)
但我未能在 Heroku 配置 SSL(我使用爱好 dynos)。
ACM 总是失败,我不知道如何使用它。
在 Heroku:
我在网站中添加域,而不是 CLI,它出来了

Domain Name     DNS Target  
example.net     <random String>.herokudns.com  

然后在 Google 域中 在合成记录中
我设置了

@.example.net ->http://www.example.net
Temporary redirect (302)
Do not forward path
Enable SSL

在自定义资源记录中

Name Type  TTL  data
www  CNAME 1H   <random String>.herokudns.com

在所有这些之后,我点击 config SSL-Automatically 我得到的只是

ACM is failing for 1 domain name
example.net - CDN not returning HTTP challenge

我检查了文档

CDN not returning HTTP challenge
Heroku ACM is attempting to to verify that the HTTP challenge file is being 
returned, but is encountering a 404 error. This typically happens when you 
are pointing your domain at a CDN, rather than the Heroku provided DNS 
target, and the HTTP challenge file does not exist on the CDN.

This typically happens with AWS CloudFront.

【问题讨论】:

    标签: ssl heroku google-domains


    【解决方案1】:

    对我有用的是将合成记录设置为

    Temporary redirect (302)
    Forward path
    Enable SSL
    

    简而言之,我选择了 Forward path,并且在 Heroku 中我的应用与在 Google 中购买的 Hobby dyno + 域都可以正常运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      • 2023-03-07
      • 2012-09-15
      • 1970-01-01
      • 1970-01-01
      • 2021-03-10
      相关资源
      最近更新 更多