简体   繁体   English

Heroku域名注册配置为雪松堆栈上的竹子

[英]Heroku domain registration configured to bamboo on a cedar stack

I have a DNS config issue with Heroku while running on the Cedar Stack. 我在Cedar Stack上运行时遇到了Heroku的DNS配置问题。 It keeps thinking I'm routing my Cedar stack to Bamboo when my custom domains have the correct pointing CNAME records and are properly configured to Heroku instruction. 当我的自定义域具有正确的指向CNAME记录并正确配置为Heroku指令时,它一直在想我将我的Cedar堆栈路由到Bamboo。 Here's what happened: 这是发生的事情:

I recently created a heroku app in the past week with a cedar stack. 我最近在一周用雪松堆创建了一个heroku应用程序。

Region: United States
Stack: Cedar
Framework: Ruby/Rails

And I used NameCheap to register my domain and pointed it to the CNAME record. 我使用NameCheap注册我的域并将其指向CNAME记录。

Host Name | IP Address/URL    | Record Type
@           foo.herokuapp.com   CNAME (Alias)
www         foo.herokuapp.com   CNAME (Alias)

I followed the Custom Domains Heroku Guide and added the domains to my heroku app 我按照自定义域Heroku指南 ,并将域添加到我的heroku应用程序

$ heroku domains:add example.com
$ heroku domains:add www.example.com

All checks pass, but when I check on the host, it points to the deprecated Bamboo stack way of pointing to domains: 所有检查都通过,但是当我检查主机时,它指向不推荐使用的Bamboo堆栈指向域的方式:

$ host www.mysite.com
www.mysite.com is an alias for proxy.heroku.com.
proxy.heroku.com has address 50.16.215.104
proxy.heroku.com has address 50.16.233.102
proxy.heroku.com has address 174.129.23.129
proxy.heroku.com has address 184.73.171.204

and when I visit my site on the custom domain, I receive this error in my logs 当我在自定义域上访问我的网站时,我在日志中收到此错误

at=error code=H70 desc="Access to bamboo HTTP endpoint denied" method=GET path=/favicon.ico host=mysite.com fwd="198.244.101.217" dyno= connect= service= status=503 bytes=

... Heroku Error Codes then tells me to properly configure my custom domains according to the Heroku Custom Domain Guide , which I already did. ... Heroku错误代码然后告诉我根据Heroku自定义域指南正确配置我的自定义域 ,我已经这样做了。

I've done a DNS lookup to check that my DNS records are pointing to the right CNAME and even flushed my DNS cache, but alas to no avail. 我已经完成了DNS查找以检查我的DNS记录是否指向正确的CNAME,甚至刷新了我的DNS缓存,但是唉也无济于事。 Any guidance? 任何指导?

Much appreciated. 非常感激。

如果任何人发现这以后,我有这个问题,但我的错误是指向“MYAPP。Heroku的 .COM”与“MYAPP。herokuapp .COM”

I just had the same issue. 我刚才有同样的问题。 You need to go to the configuration page of zerigo and clic on configure next to the domain you have trouble. 你需要在你遇到麻烦的域旁边的zerigo和clic配置页面上进行配置。 On Zerigo's site edit the CNAME record and change "proxy.heroku.com" to "yourapp.herokuapp.com". 在Zerigo的网站上编辑CNAME记录并将“proxy.heroku.com”更改为“yourapp.herokuapp.com”。 It should take a while to propagate. 传播需要一段时间。

You will see something like this: 你会看到这样的事情:

$ host www.myapp.com
www.myapp.com is an alias for myapp.herokuapp.com.
myapp.herokuapp.com is an alias for us-east-1-a.route.herokuapp.com.
us-east-1-a.route.herokuapp.com is an alias for argon-stack-1879049447.us-east-1.elb.amazonaws.com.
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 50.19.83.99
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 54.225.177.29
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 23.23.214.121
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 54.225.170.60
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 184.73.160.229
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 23.23.245.47
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 23.21.166.91
argon-stack-1879049447.us-east-1.elb.amazonaws.com has address 184.73.213.30

This worked for me just now. 这对我来说很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM