Question
Ghost and MediaWiki with Nginx
I’m running a droplet with Ubuntu 14.04 and I have a ‘domain.com’ 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
domain.com (for Ghost) and wiki.domain.com or
domain.com (for Ghost) and domain.com/wiki.
Right now, Ghost is successfully running on 'domain.com’ 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 ~
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.
×
These two guides may help you get set up:
https://www.digitalocean.com/community/tutorials/how-to-host-multiple-websites-securely-with-nginx-and-php-fpm-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts
The second guide should be especially helpful, as it should be able to walk you through setting the server block for both.