How to create subdomain on nginx which points to different droplet

August 3, 2015 4.9k views
DigitalOcean Nginx Configuration Management


I have a droplet with domain pointing on that droplet. Now I want to create subdomain which will point to another droplet. I tried to google it but without success.

My main droplet is running nginx. I’m not very familiar with server managment, so I need help from someone more experienced.

1 Answer

Pointing subdomains at different Droplets is done at the DNS level and NOT server level. Create a DNS record as follows:

DNS subdomain

Here is the IP of the other Droplet.

Have another answer? Share your knowledge.