Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a cname that points from my custom domain ( to a multilevel subdomain hosted on heroku (

I've created the Cname with the value When I go to it does not route to, instead I get:

method=GET path=/ dyno=web.1 queue=0 wait=0ms connect=4ms service=18ms status=404

It's possible I'm not fully understanding how this Cname should be setup. My desired outcome is for to act as if it were at

share|improve this question

The CNAME record makes your domain name resolve to the IP address of your Heroku application. The host name sent in the HTTP request will still be your own domain name, though, so he next thing to do is configuring your web server/Heroku server to accept requests for your domain name.

share|improve this answer

Follow along the documentation carefully. There are exactly two things you need to do:

  1. Tell Heroku about your subdomain.

    heroku domains:add
  2. Set the CNAME record in your DNS.

    s       IN      CNAME
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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