我有一个来自Namecheap的自定义域,我试图将其指向Heroku应用。
我的Heroku应用称为https://desolate-earth-75130.herokuapp.com/
和自定义域:www.harmoneytree.com
我已经按照所有可能的指示进行操作,包括youtube视频,但是当我导航到www.harmoneytree.com时,它会抛出This site can’t be reached
因为它转到了https://desolate-earth-75130
,而没有.herokuapp.com。
无论如何我都不想要,我想在浏览器中使用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.
谢谢。
答案 0 :(得分:0)
最终导致:url
中的AppWeb.Endpoint
字段被错误地填充。
将该字段更新为新的自定义域名可以解决此问题。
感谢您的评论!