Creating a subdomain on the same droplet (

May 6, 2015 1.4k views
Getting Started DigitalOcean DNS System Tools


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.

2 Answers
by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.


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

Have another answer? Share your knowledge.