我在谷歌域名上买了一个域名。(例如: 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.发布于 2019-12-24 23:17:25
对我来说起作用的是将合成记录设置为
Temporary redirect (302)
Forward path
Enable SSL简而言之,我选择了Forward path,所有这些都能很好地与我在heroku的应用程序以及在谷歌购买的Hobby dyno +域名配合使用。
https://stackoverflow.com/questions/54610667
复制相似问题