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
  • Looks like it's working just fine, both www.ordr.my and ordr.my – Timo Jul 1 '15 at 6:19
  • It's working now @TimoLehto. Just updated my answer. :) – Zulhilmi Zainudin Jul 1 '15 at 12:20
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

  • 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. – Sherwin Flight Jul 8 '15 at 4:16
  • Correct @SherwinFlight. – Zulhilmi Zainudin Jul 9 '15 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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