Ghost, Nginx & subdomains

  • Posted on April 14, 2014
  • fomu65Asked by fomu65

I took an existing Ubuntu 13.10 droplet and installed all necessary software to get Ghost running on my root domain ( Works like a champ.

Awesome, now I want to move a few other apps (fever, thinkup, sqlbuddy) to their own subdomains. I’ve configured these services before so no big deal. I create their own directories, move the files in, load up the databases in mysql, create a new sites-available, link to sites-enabled, restart everything and…

Now sqlbuddy, despite being on, is now showing up at If I remove the link for sqlbuddy in sites-enabled, restart Nginx, it goes back to working just fine with Ghost.

Here is my site-available for It is exactly what is in the setup guide, except for needed changes for my domain.

Here is my sites-available for sqlbuddy on sqlbuddy.highgravityconsultingcom, which is the default nginx file with some tweaks (I removed the boilerplate stuff that’s commented out, but you get the idea).

If anyone has any suggestions, I would love to hear them. My assumption is that this has something to do with ports and nginx pointing to node.js for Ghost, but I might be way off base with that.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Andrew, no worries, i tried pasting both configurations under the same bin. but no worry, i got it set up after a few trials and errors :) <br>thanks for the help.

@emvp84: Is that the right nginx configuration? That looks like a ghost blog and an ownCloud set up, not two ghost blogs? If you’re trying to set up ownCloud, the problem seem to be that you don’t have fastcgi set up to run php. Check out the sample nginx configuration for ownCloud here: <br> <br> <br> <br>

fomu65, can you pastebin your configuration. <br>I’m trying to accomplish the same, but still have some issues. particularly because i have ghost on my main domain and the ghost on my subdomain. <br> <br>Here is the configuration of the nginx <br> <br> <br>Also, my is still not completely replicated over DNS servers yet. <br>