a1exlism
10/24/2017 - 12:21 PM

Apache2_change_root_path

from : https://askubuntu.com/questions/337874/change-apache-document-root-folder-to-secondary-hard-drive

To change Apache's root directory, run:

cd /etc/apache2/sites-available

Then open the 000-default.conf file using the command:

nano 000-default.conf

Edit the DocumentRoot option:

DocumentRoot /path/to/my/project

Then restart the apache server:

sudo service apache2 restart