I want to set up sub domains on my personal website so I can work on various projects before I release them. However, for what ever reason there seems to be a very limited amount of information on exactly how to do this. I host my website on a personal ubuntu server and manage my domain through godaddy. I envision it in my had as changing the root directory for each individual sub domain. www.example.com is /var/www/ and site2.example.com is var/site2/. I also image I will have to edit the /etc/apache2/sites-available/default file or create a separate file.
Does anyone know a good way to do this or a place where I can learn how to do this? Thanks!