How do I set up to use sub-domain

Sorry I didn’t think of that. The virtual-host stuff you usually do is when you want to use different domain names. If it is just one setup, you can just move the document root (don’t forget to adjust the location of the data-folder in the config/config.php file, check out the thread with changing the data folder: HowTo: Change / Move data directory after installation.