Ghost blog has two addresses on top domain and subdomain, how to unlink one

  • Posted December 10, 2013


the question is following: I installed Ghost using the pre-made DigitalOcean’s solution (Ubuntu), set up the domain using the DigitalOcean’s tutorial, and the blog worked fine. But I would like to have by blog on a subdomain, and I pointed my blog to a subdomain using Ghost tutorial. It works fine, too, but now I have two identical addresses for blog access: and All posts have addresses and I would like to unlink the top domain from the blog and use it without Ghost.

I’ve read all tutorials on Ghost and subdomains here, but my knowledge in this area is very basic, and I’m afraid to screw things up. So probably there is a tutorial on this subject, but I failed to understand it. If so, please provide me a link to it.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

It has to be in <code>/etc/nginx/conf.d/</code> then. What files can you find in that directory?

Hmm, I’m guessing that the image doesn’t have nginx configured to use the sites-enabled directory. Can you please pastebin <code>/etc/nginx/nginx.conf</code>?

It seems it is nginx. The screenshot to make sure:

Are you sure that ghost is running on that droplet with nginx serving it? What program is listening on port 80? <br><pre>sudo netstat -plutn | grep 80</pre>

Oh, and I’m deeply sorry for the plain text instead of the link. I couldn’t find the markup reference for posting here.

Sorry for the late reply. There is only one file in the directory: default. <br>Link to pastebin:

Ok, what’s the output of <pre>ls /etc/nginx/sites-enabled</pre>? Please <code>cat</code> each file and <a href=“”>pastebin</a> it.

Do you want to host the top domain on the same droplet?