Set up Ghost on subdomain specific coniguration
I’m hosting a Rails application, personal site and personal blog on the same droplet. Whenever I go to blog.mysite.com I get the Rails site rather than the Ghost blog.
There are a few posts already detailing Ghost on subdomains with Nginx server blocks but I haven’t had much success and I think it may be because of the nature of my setup.
I’m running a Rails application with passenger, it works and everything is fine there.
The DNS records for my personal site are Digital Ocean but the site itself is Github.io. So www.mysite.com has a CNAME of mysite.github.io
Now I am trying to set up a Ghost blog on blog.mysite.com.
I have an A record for a blog that points to my droplet’s IP. I have a blog.mysite.com server block (the one that Ghost creates for you). But whenever I go to blog.mysite.com I get my Rails application mentioned above.
I’m wondering if this is an Nginx issue, a DNS issue or something else I’m missing.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×