Report this

What is the reason for this report?

how to connect two droplets running two different?

Posted on March 1, 2019

I’m trying to connect one droplet with a wordpress app to another with a nodejs app, lets say a chat.

https://example.com would be the wordpress app. I want that when someone enter to https://example.com/chat, he or she enters to the nodejs app. how could i connect both apps behind a load balancer and a database?



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.

This should help:

https://medium.com/@utkarsh_verma/configure-nginx-as-a-web-server-and-reverse-proxy-for-nodejs-application-on-aws-ubuntu-16-04-server-872922e21d38

Make sure all three droplets have private networking enabled so Nginx proxying happens on those internal networks. In your Nginx vhost definition you’ll have two “location” blocks, one for the root example.com/ and one for the chat app example.com/chat.

Cheers

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.