I have configured my domain to heroku IPs 75.101.163.44 75.101.145.87 174.129.212.2
But it's not redirecting my app to my domain. The er开发者_JAVA技巧ror says
There is no app configured at that hostname. Perhaps the app owner has renamed it, or you mistyped the URL.
Does each Heroku app have its own IP address? If so how to get the unique IP and how to redirect it to domain. Thanks.
Just follow these instructions and use the (unfortunately no longer free) Zerigo DNS Add-On. It's pretty easy.
Heroku applications don't have a static IP address because they're distributed across nodes in Heroku's dyno grid.
After following these instructions: https://devcenter.heroku.com/articles/custom-domains You can point your DNS servers to Heroku via the following method:
Say you are using something like Gandi.net (or GoDaddy, BlueHost, etc. they should all have similar components). Go to your Gandi console and go to your domain You want to create a new zone file, since you can't edit a zone file that your domain is already using. So clone an existing zone file and click to edit it, if need be.
In the record with name:www and type: CNAME, change the Value to [yourherokuapp].herokuapp.com, whereby [yourherokuapp] is given to you after you do a git push heroku master or heroku create
Delete the record with name:@ and type: A
Add three entries:
Name:@, type: A, address/value: 75.101.163.44
Name:@, type: A, address/value: 75.101.145.87
Name:@, type: A, address/value: 174.129.212.2
Which are Heroku DNS addresses.
And that's that. Wait a few hours (or however long the TTL is), and check
host www.your_domain.com
from the shell to see what address it responds to.
精彩评论