Hi,
In Ubuntu you define apache vhosts using config files under /etc/apache2/sites-available. E.g. to create/edit a vhost named example.com you need to add/edit /etc/apache2/sites-available/example.com. After making the necessary changes in that file, you have to run:
Code:
sudo a2ensite example.com
to enable the vhost and then restart apache.
Read the official documentation
here, or use google to find more detailed examples.
Regards