October 27, 2016
This short tutorial will show you how to setup a custom domain with SSL and Medium.com with CloudFlare.
To start, you of course must own the domain, let’s call it example.com.
Suppose you want your Medium blog to have the address blog.example.com, to differentiate it between your main site.
If you have your DNS configured to point to CloudFlare (highly recommended so traffic doesn’t always hit your server directly), then it’s a little trickier than Medium.com’s default instructions, which are posted here:
As stated in the article, the first step is to fill out a form, and someone from the support team will get back to you with configuration details.
When you get a response, login to your CloudFlare account and click the DNS tab:
There are 2 types of records you have to add, CNAME and A Records.
We will start with CNAME.
You will get a name-value pair that looks like:
The email will tell you that you can enter the name as <token>.blog.example.com OR just <token>.blog. I have found the latter to work.
You will enter the CNAME record as follows:
Finally, you will receive a list of A Records to add. These should be added under the “Value” column. The “Name” column should just be “blog”.
And that’s it! Easy peasy.