Creating a subdomain on the same droplet (


I’m using one droplet and would like to create different subdomains for my different applications. For example, I’d like to use for my xyz app and store everything related to that application in that domain like the webpage and php files etc. Creating a new droplet and pointing ip address is the easiest way but I don’t want to do that.

I’ve checked numerous tutorials and questions but I don’t think I’ve found what I’m looking for. In my previous hosting companies, I was just creating a folder www and everything was fine. I couldn’t figure out how to do this in digitalocean.

Thank you very much for your assistance.

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.


@Woet , what is the title of the Dubstep track on your website? It’s awesome!