-
Clone to directory:
/var/www/html
-
Enter apache directory:
cd /etc/apache2/sites-available
Copy and rename default conf file
cp 000-default.conf personal-site.conf
Add or edit the following lines to match:
ServerName personal-site.local
ServerAlias www.personal-site.local
DocumentRoot /var/www/html/personalSite/public
Enable/add site to apache
sudo a2ensite personal-site.conf
-
sudo vim /etc/hosts
-
Give local IP address
127.0.0.1 personal-site.local