I have tried to install this two services, but support says that the best solution is two droplets, but I don’t want it.
Please, tell me how to install both in same droplet.
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!
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.
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.
It’s certainly possible. For Ghost you can set up a reverse proxy with Nginx, and for WordPress you can use a basic LEMP setup (a more in depth WordPress on Nginx article is here).
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
This setup assumes you have different domains setup for each site.
for lighttpd you can see http://stackoverflow.com/questions/12470062/proxying-a-sub-folder-using-lighttpd-mod-proxy and for apache2 see “Configure the reverse proxy in Apache” on http://blog.apericore.com/self-hosting-a-ghost-blog-on-debian/
you can use reverse proxy redirect for the ghost blog so you can have site.com/ghost and have wordpress as default on site.com etc
this stackoverflow might help http://stackoverflow.com/a/20078669