自定义域名 - heroku [英] Custom domain names - heroku
问题描述
我有我的heroku应用程序:example.herokuapp.com
以及我的自定义域名:example.com
我在heroku中的设置似乎是正确的。我的仪表板显示域名是example.com,dns目标是example.herokuapp.com。
我的自定义域名在控制面板中的设置看起来也是正确的。 url转发设置为example.herokuapp.com,转发模式为:frame(cloaking)默认
首先列出你的heroku
heroku域名
一般步骤:
- 确认您拥有自定义域名。如果没有,您可以购买一个域名注册服务。
- 使用heroku domains:add命令将自定义域添加到您的应用程序。请参阅下面的各种变体。
- 使用下面描述的heroku domains命令查找Heroku提供的自定义域的DNS Target。
- 配置您应用的DNS提供商指向Heroku提供的DNS目标。
- 测试您的应用是否可通过自定义域进行访问。当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:
- Confirm that you own the custom domain name. If not, you can buy one with a domain registration service.
- Add the custom domain to your app with the heroku domains:add command. See below for different variations.
- Look up the Heroku-supplied DNS Target for the custom domain using the heroku domains command as described below.
- Configure your app’s DNS provider to point to the Heroku-supplied DNS Target.
- Test that your app is accessible via the custom domain. There may be a delay while DNS changes propagate.
这篇关于自定义域名 - heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!