我在 Google 域购买了一个域名。(例如:example.net)
但我未能在 Heroku 配置 SSL(我使用爱好 dynos)。
ACM 总是失败,我不知道如何使用它。
在 Heroku 中:
我在网站中添加域,而不是 CLI,它就出来了
Domain Name DNS Target
example.net <random String>.herokudns.com
然后在我设置 的合成记录中的谷歌域中
@.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.