Create a subdomain on Namecheap for a Heroku Rails app Create a subdomain on Namecheap for a Heroku Rails app heroku heroku

Create a subdomain on Namecheap for a Heroku Rails app


I have found the solution for my question. So first of all, the correct configuration for the advanced DNS:

  1. Type: CNAME
  2. Host: myapp
  3. Value: myapp.herokuapp.com (without the https protocol)
  4. TTL: Automatic

After that, it takes a moment for the DNS to update the subdomain and make it available. During this time, I needed to add my subdomain to my Heroku configuration. It is possible via the dashboard of via terminal.

I did it via terminal with this command:heroku domains:add myapp.mysite.com

After some time, it finally worked. However, having a custom domain or subdomain disable the default SSL from Heroku.

I mostly learn via this article:https://devcenter.heroku.com/articles/custom-domains