Report this

What is the reason for this report?

Two droplets one domain (no subdomain!)

Posted on June 6, 2024

I have two droplets with different Node JS applications that should be accessible under one domain (no subdomain):

1. Droplet IP 123.123.123.123:
www.domain.com/ -> redirect -> www.domain.com/app/
www.domain.com/app/...
2. Droplet IP 321.321.321.321:
www.domain.com/api/
www.domain.com/api/...

Droplet/s: Ubuntu 20.04, NGINX 1.17.10

Would this be possible in principle and if so, what would I have to configure where?

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.