Question

Multiple domains per droplet

I have been searching for a while so far I couldn’t find a straight answer.

Can you have multiple domains / subdomains per droplets or you can only have one domain associated per droplet?

If multiple domains are possible are there any references / tutorials that I could follow for directions?

To all helping, thank you in advance.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I have about 20 domains associated with a single droplet without any trouble. You should see a DNS menu item on the side bar where you can point any number of domains to any droplet you have.

Hi! I find this information useful.

But I have a question regarding adding a second domain. Since they both point to the same IP/Droplet. How can I distinguish the two domains ( apps ) ? Better yet, how can I point them to different ports?

Is it as simple as setting the domain’s IP with the PORT number?

Thanks.

So just to clarify this, one droplet = one IP address so if you have 20 domains sharing they are sharing the one IP address? Am I interpreting that correct or is there a way of assigning unique IP addresses in the DNS menu item?