6. Next browse to the folder “/etc/apache2/” and edit the file “listen.conf” and add the following line for each of your virtual hosts. In this example I have added the line for the two sites peter.co.za and dna.co.za
7. You can now test your config by typing the following at the command prompt
apache2ctl configtest
8. Reload Apache by typing “apache2 restart” at the command prompt
9. Test by browsing to http://peter.co.za and http://dna.co.za
TIP
For testing Virtual hosts you will need to create host name to ip address mapping in your host file. The host file is found in the “/etc” folder