自定义域名 - heroku [英] Custom domain names - heroku

查看:656
本文介绍了自定义域名 - heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有我的heroku应用程序:example.herokuapp.com



以及我的自定义域名:example.com



我在heroku中的设置似乎是正确的。我的仪表板显示域名是example.com,dns目标是example.herokuapp.com。



我的自定义域名在控制面板中的设置看起来也是正确的。 url转发设置为example.herokuapp.com,转发模式为:frame(cloaking)默认

解决方案

首先列出你的heroku

  heroku域名



一般步骤:




  1. 确认您拥有自定义域名。如果没有,您可以购买一个域名注册服务。

  2. 使用heroku domains:add命令将自定义域添加到您的应用程序。请参阅下面的各种变体。

  3. 使用下面描述的heroku domains命令查找Heroku提供的自定义域的DNS Target。

  4. 配置您应用的DNS提供商指向Heroku提供的DNS目标。

  5. 测试您的应用是否可通过自定义域进行访问。当DNS更改传播时可能会有延迟。

检查一下


This doesn't work for some reason.

I have my heroku app: example.herokuapp.com

And my custom domain name: example.com

My settings in heroku seem to be correct. My dashboard says the domain name is example.com and the dns target is example.herokuapp.com

The settings in the control panel for my custom domain name seem right too; url forwarding is set to example.herokuapp.com and the forward mode is: frame(cloaking) default

解决方案

First list your heroku domains, then follow the steps, and reference the guide linked below.

heroku domains

General steps:

  1. Confirm that you own the custom domain name. If not, you can buy one with a domain registration service.
  2. Add the custom domain to your app with the heroku domains:add command. See below for different variations.
  3. Look up the Heroku-supplied DNS Target for the custom domain using the heroku domains command as described below.
  4. Configure your app’s DNS provider to point to the Heroku-supplied DNS Target.
  5. Test that your app is accessible via the custom domain. There may be a delay while DNS changes propagate.

Check this out

这篇关于自定义域名 - heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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