How to make a subdomain on same droplet?

Posted July 27, 2014 5.3k views

I want to make a subdomain on same droplet, just for 2 html files.
What I need to do? I’m really new to this


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.

Submit an Answer
1 answer

You will need to add a DNS record for the subdomain:

and add a virtualhost: Search results for ‘virtual host’. Choose the article that fits your setup, e.g. Apache on Ubuntu 14.10.