link
Create virtual host configuration
sudo nano /etc/apache2/sites-available/example.com.conf
Create new vhost file
Copy default template
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf