Tags

, , , , , , ,

First of all, install apache2 using apt-get

apt-get install apache2

 

Create multiple root folders for each of the websites.

mkdir /var/www/www.wss.local
 mkdir /var/www/www.eng.local
 mkdir /var/www/www.tp.local

 

navigate to /etc/apache2/sites-available/
create a file named http://www.wss.local nano http://www.wss.local

enter the following lines into the file

<VirtualHost *:80>
 ServerAdmin webmaster@wss.local
 ServerName www.wss.local
 ServerAlias wss.local

DocumentRoot /var/www/www.wss.local
 </VirtualHost>

 

Using the file we’ve just created, make 2 copies of it and make adequate changes to them for http://www.eng.local and http://www.tp.local.

After we’re done creating the files.
Enable the sites

a2ensite www.wss.local
 a2ensite www.eng.local
 a2ensite www.tp.local

 

Verify that symlinks of the three files have been created in /etc/apache2/sites-enabled.

Advertisements