简体   繁体   中英

Redirecting my Heroku app to a custom domain on BigRock

I have added my domain to heroku using heroku domains:add .

Now when I run heroku domains in my terminal, I get

=== sampleapp Domain Names
sampleapp.herokuapp.com
sampleapp.me
www.sampleapp.me

I'm unable to configure BigRock's DNS to point to the Heroku-supplied DNS Target (which is sampleapp.herokuapp.com ).

There's a domain forwarding option in BigRock, but when I use it, it shows my Heroku app in an iframe .

In the DNS management panel, I see A records , CNAME records etc., but I have no understanding of what they mean. I have, however, added a www cname with the value shown in the image below.

bigrock dns管理面板

Can someone please tell me how I should go about doing this? Thank you.

I had to remove my A records for WWW to get it working. For naked domain, CNAME is not recommended.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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