The apache2 version that was published when the Ubuntu 14.04 release was made is 2.4.7 and starting with this version it seems that, for security reasons, the new root directory for the server is:
So, from now, here you must to place the files for your (local) website. And like this you should not have this problem again with the future updates.
Anyway, if you want to change this directory with another one, you have to modify (as root) the following line from
/etc/apache2/sites-available/000-default.conf file (
sudo nano /etc/apache2/sites-available/000-default.conf):
After these, to take effect the new changes , you must to restart apache server using the following command:
sudo service apache2 restart