Let’s say I have two subdomains set on one droplet.
Requests are a typical api type of query: http://api.mydomain.com/products?category=shoes and it returns a json response but I’m pretty sure that’s not important.
What I’d like to know, is because both subdomains are on the same droplet, is there a more secure or more efficient way to allow requests to api.mydomain.com.
Further, if I should decide to move api.mydomain.com to another droplet and therefore another IP address, what then in terms of private requests?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!