I'm new to digital ocean and new to server management in general, so please forgive me if I've missed something obvious here.
I want to be able to host multiple domains on my single VPS, with each domain defaulting to it's document root at /var/www/thisdomain.com/public_html
So far I have:
1) Followed the getting started guide to create my server, set it up and install LAMP.
2) Accessed the server through FTP client, where I can successfully upload files and view them online.
3) Successfully set up my host name, which is working, as per this guide https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean
4) Completed this guide to set up multiple virtual hosts https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts
For a brief moment, visiting my domain successfully showed me the contents of /var/www/mydomain.com/public_html but now it is only showing me the contents of the root at /var/www
At a guess, I'm assuming the issue may be because the DNS records for my domain have been configured to link to this droplet as some kind of master domain for the server, rather than as one of many domains being hosted, but I'm not really sure.
Another thing to note, shortly before it stopped working I did install VirtualMin - just experimenting to see what it was like - I don't see that it would cause issues but could this have affected things?
Is anyone able to point me in the right direction? Thanks very much!
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.