Changing apache document root in ubuntu

In my development machine I always like to move the default /var/www directory to my home directory, e.g. /home/tareq/www . It’s very simple to do. Open the /etc/apache2/sites-available/default file with administrator previledge and change the document root as you want

Now change the file like this:

Now restart your apache

Update According … Continue reading Changing apache document root in ubuntu