I have a heroku application and I want to attach a custom domain to it. The problem is that heroku does not support A records in DNS. They say I should do it using CNAME or something similar. What can I do to forward my domain to myapp.heroku.com? asked 15 Apr '14, 17:39 akonsu |
CNAME records do not forward or redirect anything. CNAME records simply create an alias for an existing hostname. They cannot be set for bare domains, only for subdomains. If you want myapp.heroku.com to be served at myapp.domain.com, so that myapp.domain.com is what the user sees in their browser address bar once the site is loaded, then create a CNAME record that points myapp.domain.com at myapp.heroku.com. If you want myapp.domain.com to redirect to myapp.heroku.com, so that myapp.heroku.com is what the user sees in their browser address bar once the site is loaded, then attach myapp.domain.com to a site here at WebFaction, and redirect it via .htaccess. You can also use this technique to redirect your bare domain to myapp.domain.com. answered 15 Apr '14, 20:42 seanf |
I used a plugin on heroku for that.