Heroku 自定义域名损坏

Heroku Custom Domain name broken

我有一个来自 Namecheap 的自定义域,我正试图将其指向一个 Heroku 应用程序。

我的 Heroku 应用名为 https://desolate-earth-75130.herokuapp.com/ 和自定义域:www.harmoneytree.com

我已经遵循了所有可能的指示,包括 youtube 视频,但是当我导航到 www.harmoneytree.com 时,它会抛出 This site can’t be reached

因为没有 .herokuapp.com 就转到 https://desolate-earth-75130

反正我不想要,我想要 www.harmoneytree.com 在浏览器中。

$ host www.harmoneytree.com
www.harmoneytree.com is an alias for harmoneytree.com.
harmoneytree.com is an alias for desolate-earth-75130.herokuapp.com.
desolate-earth-75130.herokuapp.com has address 100.26.7.15
desolate-earth-75130.herokuapp.com has address 52.205.16.151
desolate-earth-75130.herokuapp.com has address 3.225.95.126
desolate-earth-75130.herokuapp.com has address 52.200.110.231
desolate-earth-75130.herokuapp.com has address 34.237.174.28
desolate-earth-75130.herokuapp.com has address 52.86.20.171
desolate-earth-75130.herokuapp.com has address 34.225.219.245
desolate-earth-75130.herokuapp.com has address 34.206.39.216

Heroku 设置>域如下所示

harmoneytree.com     animatedhornet...
www.harmoneytree.com animatedtick.....
*.harmoneytree.com   arcanesquid......

namecheap 设置如下所示

CNAME www desolate-earth-75130.herokuapp.com.

提前致谢。

结果是 AppWeb.Endpoint 中的 :url 字段填充不正确。

将该字段更新为新的自定义域名解决了这个问题。

感谢评论!