I want to install two CMS in the same droplet, i use Ubuntu 14.10 and Fedora Workstation (last version)… Thanks
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.
Check out the following articles. They show you how to get Ghost and WordPress running individually using the Nginx webserver. They should point you in the right direction:
How To Host Ghost with Nginx on DigitalOcean
How To Install WordPress with Nginx on Ubuntu 14.04
Putting them together, your Nginx configuration would look something like:
The port used for the
proxy_pass
should match the “port” setting in/var/www/ghost-blog-domain.com/ghost/config.js
Theserver_name
directive is also important here as it is how Nginx know how to correctly route requests.