如何将我的域名连接到我的herokuapp? [英] How to connect my domain bought on name.com with my herokuapp?
问题描述
在heroku上添加了一个新的自定义域:
域名DNS目标
mydomain.com mydomain.com.herokudns.com
,而在heroku上的信息泡沫上说:
为您的DNS提供商提供CNAME或ALIAS
记录的目的地。
所以我在Name.com下进行
在菜单点DNS记录:
键入主机答案TTL
CNAME * mydomain.com.herokudns.com 300
在菜单点名称服务器:
ns1.name.com
ns2.name.com
ns3.name.com
ns4.name.com
等待3天,没有工作。所以我删除了Nameservers =>没有工作。
试图将DNS记录下的答案更改为:myApp.herokuapp.com(如下所述)
<但我不认为这会奏效。那么,如何使这个工作?
需要指向 yourapp.herokuapp.com
,您需要将 www
映射到主机
字段。
为了将您的根域名(即yourdomain.com)指向Heroku应用程序,您需要使用允许CNAME平坦化(如CloudFlare)的DNS服务。
看到这篇文章: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain
I bought my domain on Name.com I got my App on heroku.
On heroku added a new "custom domain":
Domain Name DNS Target
mydomain.com mydomain.com.herokudns.com
and on the info bubble on heroku it says:
Supply this to your DNS provider for the destination of CNAME or ALIAS records.
So I do under Name.com:
On the menu point "DNS Records":
Type Host Answer TTL
CNAME * mydomain.com.herokudns.com 300
On the menu point "Nameserver":
ns1.name.com
ns2.name.com
ns3.name.com
ns4.name.com
Waited 3 days and it didn't work. So I deleted the Nameservers => didn't work.
Tried to change the "Answer" under "DNS Records" to: "myApp.herokuapp.com" (like here mentioned)
But I don't think this will work. So, how to make this work?
It needs to point to yourapp.herokuapp.com
and you'll need to map www
to the Host
field.
In order to point your root domain, i.e. yourdomain.com to the Heroku app, you'll need to use a DNS service that allows CNAME flattening like CloudFlare.
See this article: https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain
这篇关于如何将我的域名连接到我的herokuapp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!