Question
I want to know step by step creation of subdomain. (I am using apache server)
I am already using digital ocean since last year and happy with the service they provided. Now I want to create subdomain on the existing server. please provide me step by step guidance.
EXAMPLE.COM
now I want to create test.example.com
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.
×
Useful article here, probably easiest way of doing it would be to split your websites into /var/www/html/site1 and /var/www/html/site2 then use virtualhosts as explained here, pointing your subdomain to the same A record as your main site
https://www.digitalocean.com/community/questions/host-multiple-websites-in-one-droplet