Enabling sites in ubuntu

Problem

How to enable a site in ubuntu

Solution

To enable a site in ubuntu type in this commands:

sudo a2ensite <your-site-name>
sudo /etc/init.d/apache2 restart

Befor you do that you would need to create a virtual host.