Disabling sites in ubuntu

Problem

How to disable a site in ubuntu

Solution

To disable a site in ubuntu type in this commands:

sudo a2dissite mynewsite
sudo /etc/init.d/apache2 restart