Start a conversation

Root Domain Setup Using Cloudflare

What is Cloudflare?

Cloudflare is a DNS management service and content delivery network (CDN). Ghost is partnered with Cloudflare, and all Ghost(Pro) blogs automatically receive the benefits of Cloudflare’s CDN.

Create a Cloudflare account

  1. To create a Cloudflare account, go to https://www.cloudflare.com/a/sign-up and follow the prompts to get started.
  2. At the top of your Cloudflare account, click Add Site
  3. Enter your domain into the field provided and click Scan DNS Records
  4. When the Cloudflare DNS scan is complete, click Continue
  5. Verify that all of your DNS records are listed with Cloudflare and click Continue
    dnsrecords.png
  6. Select the “Free” plan and click Continue.
    Screen_Shot_2017-07-06_at_5.27.52_PM.png
  7. Next, update your NS records with your domain registrar to the records that Cloudflare requires and click Continue.
    Screen_Shot_2017-07-06_at_5.47.50_PM.png

Once through the Cloudflare setup process, you should be able to manage your domain through Cloudflare.

Root Domain Setup

If you'd like your publication to work at the root level by default, e.g. yourdomain.com, follow the steps below.

Add DNS Records

  1. Click the DNS icons at the top of your Cloudflare toolbar.
  2. Add the following DNS record to point to your domain at your Ghost(Pro) blog:
    @ CNAME yourblog.ghost.io
  3. Create a second DNS record to point the subdomain to the root domain: www CNAME yourdomain.com
  4. The end result should look like this:

Redirect the Subdomain

  1. Click the Page Rules icons at the top of your Cloudflare toolbar.
  2. Click the Create Page Rule button
    create-page-rule.png
  3. Setup your page rule using the example below:
    pagerules.png
  4. Click Save and Deploy

Subdomain Setup

If you'd like your publication to use a subdomain by default, e.g. blog.yourdomain.com or www.yourdomain.com, follow the steps below.

Add DNS Records

  1. Click the DNS icons at the top of your Cloudflare toolbar.
  2. Add the following DNS record to point to your domain at your Ghost(Pro) blog:
    www CNAME yourblog.ghost.io
  3. Create a second DNS record to point the subdomain to the root domain: @ CNAME yourdomain.com
  4. The end result should look like this:

Redirect the Subdomain

  1. Click the Page Rules icons at the top of your Cloudflare toolbar.
  2. Click the Create Page Rule button
    create-page-rule.png
  3. Setup your page rule using the example below:
    pagerules.png
  4. Click Save and Deploy

Update Publication Settings

With the Cloudflare DNS records added, the final step to setting up your custom domain would be to update the publication settings on my.ghost.org.

  1. Log into your ghost.org account.
  2. Access your publication management settings by clicking the dropdown menu arrow to the right of "More"
  3. Select Domain from the list of options.
  4. Enter your domain into the Custom Domain field. Be sure to enter the correct form of the domain, e.g. www.yourdomain.com for a subdomain configuration, OR, yourdomain.com for a root configuration.
  5. Click Save.


Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Sarah Frantz

  2. Posted
  3. Updated