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 ~

Show comments

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.

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