Question

I have an Amazon EC2 instance setup with nodes installed. I'm currently using Keystone.js as my cms, but I'm also interested in trying out ghost for blogging. I have set up and elastic ip and my domain is correctly pointed to my amazon instance, but I'm sure how to go about setting up a subdomain such as blog.example.com and having ghost run off of that subdomain. Are there any guides or tips out there to push me in the right direction?

Was it helpful?

Solution

I have not idea what a Ghost blog is. But if you can access the blog using EIP and want to expose this service via a subdomain, you need to create a subdomain in your hostedzone and point that subdomain to the elastic IP using an A record.

If you use Route53 for example. Go to Route53 console, open RecordSets for example.com from the GUI. Add a new Record by filling in blog in the subdomain field. Select record type A. Paste the EIP in the value text area. Click create.

This will update your hostedzone file. After a minute or two, you can use blog.example.com to access Ghost running at EIP.

enter image description here (enlarge: right click > open image in a new tab)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top