Data Networking/Spring 2015/GROUP4/Virtual hosting

1.create new file in sites-available folder that will be used by server to access the new site sudo nano /etc/apache2/sites-available/site2.conf

2.Now change the directory to sites-available using below command

cd /etc/apache2/sites-available

3.Now open the new site2.conf file and modify the directory path and server name using below command

sudo nano /site2conf

4.save the file and restart the apache server

sudo /etc/init.d/apache2 restart