Assuming Apache mod_rewrite module is enabled:

sudo a2enmod rewrite

Create the needed website directories:

mkdir /var/www/brianwilliams.pro
mkdir /var/www/allaboutyoushelby.com

Configure Apache:

sudo vi /etc/apache2/sites-available/brianwilliams.pro

<VirtualHost *:80>
DocumentRoot /var/www/brianwilliams.pro
ServerName www.brianwilliams.pro
ServerAlias brianwilliams.pro
</VirtualHost>

sudo vi /etc/apache2/sites-available/allaboutyoushelby.com

<VirtualHost *:80>
DocumentRoot /var/www/allaboutyoushelby.com
ServerName www.allaboutyoushelby.com
ServerAlias allaboutyoushelby.com
</VirtualHost>

Enable the sites in Apache:

cd /etc/apache2/sites-available
sudo a2ensite brianwilliams.pro
sudo a2ensite allaboutyoushelby.com

Restart Apache:

sudo service apache2 restart

 

 

 

Leave a Reply