我如何将我的域名链接到Heroku应用程序?
我有FreeNom.com的免费域。我在Heroku上的应用程序设置中创建自定义域,并在FreeNOM上的域DNS设置上为我提供了“ DNS Target”。但是即使几天后,网站也无法通过我的域访问。我在做什么错?
freenom.com的域:
Heroku上的自定义域:
dns在freenom上的设置:
网站不起作用:
I have free domain from freenom.com. I create custom domain in app settings on Heroku and setup given me 'DNS target' on my domain DNS settings on Freenom. But even after several days, website not accessible via my domain. What am I doing wrong?
Domain from freenom.com:
Custom domains on Heroku:
DNS settings on Freenom:
Website doesn't work:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该为您的域[1]添加一个a record,该域名指向FreeNOM的DNS管理页面上的网站服务器IP地址。
[1] urlcuter.tk
You should add an A-record for your domain[1] pointing to your website's server IP address on freenom's DNS management page.
[1] urlcuter.tk
这不是DNS问题。
浏览器错误消息显示您正在尝试通过HTTPS(而不是HTTP)访问该站点,并显示SSL错误。您是否设置了自定义域的证书,例如自动证书管理 (ACM)?
现代浏览器通常默认为HTTPS,甚至看起来您已经设置了从HTTP到HTTPS的重定向。您需要证书来进行这项工作。如上所述,ACM是最简单的解决方案,但它确实要求您在Heroku上使用付费的Dyno。
您还可以如果您愿意,请带上自己的证书。
This isn't DNS issue.
The browser error message shows that you are trying to access the site over HTTPS (not HTTP), and is displaying an SSL error. Have you set up a certificate for your custom domain, e.g. via Automated Certificate Management (ACM)?
Modern browsers often default to HTTPS, and it even looks like you have set up a redirect from HTTP to HTTPS. You'll need a certificate to make that work. ACM, as noted above, is the simplest solution but it does require that you are using a paid dyno on Heroku.
You can also bring your own certificate if you prefer.