On a Linux host the web root directory, that is the directory where all the html files are stored, is located in /var/www
There are times when you may wish to change this location, or at least there have been times when I have found it necessary. As with many other applications on Linux or Unix achieving your desired modification is as simple as editing an ASCII file. The problem is always which one to edit and how. Here is how I was able to accomplish the goal of changing web root from /var/www to /var/www/foo