2

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?

Note:

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.

Reference:

  1. Heroku Custom Domains
  2. Cloudflare Zone Apex
  3. Cloudflare CNAME Flattening
2
  • 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

1

Solved.

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:

Cloudflare

enter image description here

Heroku

enter image description here

2
  • 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 that you have read and understand our privacy policy and code of conduct.

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