Heroku欧盟地区如何设置自定义域名? [英] Heroku EU region how to setup custom domain name?

查看:206
本文介绍了Heroku欧盟地区如何设置自定义域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Heroku欧盟地区如何设置自定义域名?

我试图设置3个指向heroku服务器的arecords。

  174.129.212.2 
75.101.145.87
75.101.163.44

我已将该域添加到应用程序。但是,当访问该域时,它说没有这样的应用程序。



我已经ping到了heroku应用程序域。 (myap.heroku.com)并设置一个与之对应的ip(ip)。而且它还是说没有这样的应用程序。

解决方案

你不能在Heroku Europe上使用IP地址 - 只有CNAME会工作唯一支持的机制)。您只需在您的DNS控制面板中将您的自定义域名CNAME添加到myapp.herokuapp.com,然后通过CLI或heroku.com将自定义域添加到您的应用程序中即可。


Heroku EU region how to setup custom domain name?

I have tried to setup 3 arecords that point to heroku server.

174.129.212.2
75.101.145.87   
75.101.163.44

I have added the domain to the app. But when visiting the domain it says no such app..

I have pinged the heroku app domain. (myap.heroku.com) and setup an arecord with it (the ip). And it still says no such app..

解决方案

You cannot use IP addresses with Heroku Europe - only CNAME's will work (or are the only supported mechanism). You simply CNAME your custom domain to myapp.herokuapp.com in your DNS control panel, add the custom domain to your application via the CLI or heroku.com and it will work.

这篇关于Heroku欧盟地区如何设置自定义域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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