How to make a subdomain on same droplet?

Posted July 27, 2014 5k 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.

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.

Submit an Answer