Multi-droplet architecture same domain
Maybe this is not the best (right?) approach, but I’m investigating the following setup and wondering if this is possible with Digital Ocean Droplets:
Imagine a base domain: foo.com
Now I want to be able to support multiple apps like this:
foo.com/blog (Wordpress, probably on its own Droplet)
foo.com/app (probably Node or something, on its own Droplet)
foo.com/app/v1 (probably Node or something, on its own Droplet)
foo.com/app/v2 (probably Node or something, on its own Droplet)
The basic question here is can I setup different droplets for these different paths and do the routing/redirection from the main entry droplet running foo.com?
The alternative approach is to do something like this:
foo.com (Droplet 1)
blog.foo.com (Droplet 2 - Wordpress)
v1.app.foo.com (Droplet 3 - Node)
v2.app.foo.com (Droplet 4 - Node)
Anyone done anything like this? Any thoughts on it?
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.×