I create a simple Rails app and deployed it to Heroku. This is my app. I use Cloudflare to manage my DNS records and I try to achieve something like this:

enter image description here

This is all my current DNS records inside my Cloudflare:

enter image description here

My problem:

When I go to ordr.my, it's works like I wanted to. But when I go to www.ordr.my, it returns This webpage is not available error (I'm using Chrome browser).

Am I doing any mistakes here?

How to achieve something like inside the image above?


I did my research by reading Heroku and CloudFlare docs. But I found no luck since I'm not able to understand them very clearly.


  1. Heroku Custom Domains
  2. Cloudflare Zone Apex
  3. Cloudflare CNAME Flattening
  • Looks like it's working just fine, both www.ordr.my and ordr.my
    – Timo
    Jul 1, 2015 at 6:19
  • It's working now @TimoLehto. Just updated my answer. :) Jul 1, 2015 at 12:20

1 Answer 1



I added www.ordr.my into my Heroku custom domain section and change ordr.my CNAME (root domain) to my Heroku app just like below:


enter image description here


enter image description here

  • So the problem wasn't your DNS setup. Heroku wasn't replying to the requests because the www version wasn't set up in their system. You had your DNS configured correctly. Jul 8, 2015 at 4:16
  • Correct @SherwinFlight. Jul 9, 2015 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.