Mental Pivot

Notes and observations from a lifelong pursuit of learning.

Insights and interesting reads delivered straight to your inbox.
Sign up for the free Mental Pivot Newsletter.

Configuring Your DigitalOcean Droplet Domain and SSL for Ghost

I recently had to fix my Ghost setup because I had screwed up the SSL certificates the first time around. Rather than fiddle with things, I found it easiest just to reinstall and start from scratch.

Since the steps as described in my installation notes might help other Ghost noobs, I figured I'd post them.

Note: I opted to use DigitalOcean because it was much less expensive than my prior webhost, Site5. Digital Ocean also has excellent documentation and some easy software installation tools. I am not running any affiliate links to DigitalOcean so the mention of my host is not self-serving but rather for full transparency about my hosting setup.

Here's the step-by-step for configuring your domain and SSL certificate via DigitalOcean:

  • Once you have setup a new Ghost droplet on DigitalOcean, have DigitalOcean manage the DNS for your blog (there are settings for this on the DigitalOcean dashboard).
  • Create an A-name record for your canonical domain. This will be either your “naked domain” (e.g. in the case of my site) or “”. I setup as the A-name record. I setup a C-name record for since I want that domain to act as an alias.
  • It takes time for your DNS records to propagate throughout the internet. You can check on the progress here
  • After your DNS changes have propagated, you can complete your ghost droplet setup. You can find the instructions on what to do for this step here:
  • The process on the link above will setup an SSL certificate for you. Make sure you select your CANONICAL url when prompted for this information (e.g.
  • Note that Ghost can ONLY point to one root domain. More importantly, note that and are NOT THE SAME (I previously treated them as the same, but Ghost won’t. So make sure you understand this point). Also: you cannot use a domain wildcard (e.g. * in this specific environment (DigitalOcean, LetsEncrypt SSL and Ghost).
  • Next make sure you follow the SSL instructions here for setting up a 2nd domain:
  • Note that the path to the files you need to edit when setting up the 301 redirect can be found in this section of the Ghost docs:
  • Since most online answers assume you know what the heck these config files are supposed to look like, it’s confusing when you vi into the file and have no idea what to add and what to delete. This link above includes some examples from user vikaspotluri123 that are helpful:
  • Note that the semi-colon is important at the end of the 301 redirect line. Do not omit or you will get Nginx errors.

Get weekly email updates and additional content: Sign up for the free Mental Pivot Newsletter.