We have a droplet running our production app. The droplet serves our marketing site, our web app, and our API that’s used by our iOS and Android apps.
We want to launch a blog. According to Seomoz it’s better to have the blog live in a subfolder and not a subdomain.
But, I really don’t want Wordpress running on our production server for security and resource consumption reasons.
So, the question: if our site is www.company.com hosted on droplet A, is it possible to host a blog at www.company.com/blog on a different droplet B?
For reference, our stack is nginx, unicorn, rails. I’m wondering if there’s some sort of nginx rule I could use to redirect requests to /blog to another droplet?
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.
https://www.nginx.com/resources/admin-guide/reverse-proxy/
https://www.nginx.com/resources/admin-guide/reverse-proxy/