Ghost and MediaWiki with Nginx

I’m running a droplet with Ubuntu 14.04 and I have a ‘’ to play with. I want to be able to serve an instance of the Ghost app and a MediaWiki site using Nginx as the web server of choice.

It’s not important how the domain would be pointed, it could be (for Ghost) and or (for Ghost) and

Right now, Ghost is successfully running on ‘’ and being the blogging platform it is keeping it that way would be preferred (and probably easier?). I’m reading up on a ton of documentation for server and location block configuration, but I just can’t seem to crack this.

We can assume I have a LEMP stack on the server, I have earlier on served MediaWiki-sites from my droplets, I am familiar with working the DNS records for multiple servers.

I’ll continue the search and would be grateful for some input on this issue ~


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.

You might want to look at my script to create a Ghost docker container, then set up the NGINX config for it.