如何将我的域名从hostgator指向英雄 [英] How do I point my domain name from hostgator to heroku

查看:154
本文介绍了如何将我的域名从hostgator指向英雄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的hostgator域名指向我的heroku应用,但是当我尝试管理我的域名时,我会收到错误。

 发生错误。请验证您的名称服务器的有效性,然后重试。 

我已经在网站仪表板>设置中将域名添加到heroku。我的应用程序是免费的,我准备好向上移动并支付完整版本。我一直在想一些事情,我准备好部署。为此,我必须将我的域名指向英雄。我知道我错过了一些东西。我已经阅读了这个文档了很多,但并不完全清楚。我知道这是我失踪的简单。感谢提前



编辑。我不希望我的域名成为子域名。我希望它成为主要的领域。因为您不能通过一个子域名网站获利。



编辑清楚我想要hostigator的域名mysite.com与我的heroku应用程序一起使用。所以当我输入mysite.com我的英雄应用程序出现。我想要我的英雄应用程序从这个

  mysite.herokuapp.com 
/ pre>

到此

  mysite.com 

,我不希望它成为一个子域

解决方案

根据 https://devcenter.heroku.com/articles / custom-domains ,您必须首先在Hostgator上添加CNAME www example.herokuapp.com等CNAME记录。之后,您必须将www.example.com(带或不带www)添加为您的项目的自定义域。这很简单。


I'm trying to point my hostgator domain name to my heroku app, but I keep getting the error when I try to manage my domain names.

An error occurred. Please verify the validity of your nameservers and try again.

I've already added the domain name to heroku in the sites dashboard > settings. My app is free, I'm ready to move up and pay for the full version. I've been figuring some things out and I am ready to deploy. And to do this I have to point my domain name to heroku. I know I'm missing something. I've read the docs already, a lot, But it's not all the way clear. I know it's something simple I'm missing. Thanks in advance

EDIT. I don't want my domain to be a subdoamain. I want it to be the main domain. because you can't monetize a site that is a subdomain.

EDIT to be clear I want the domain name mysite.com from hostgator to be used with my heroku app. So when I type mysite.com my heroku app appears. I want my heroku app to go from this

 mysite.herokuapp.com

to this

mysite.com

and I do not want it to be a subdomain

解决方案

According to https://devcenter.heroku.com/articles/custom-domains you must add a CNAME record like "CNAME www example.herokuapp.com" first at Hostgator. After that, you must add www.example.com (with or without www) as a custom domain to your project. It's really simple.

这篇关于如何将我的域名从hostgator指向英雄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆