I have 2 websites on an Ubuntu 14.04 server with Apache. The websites are in /var/www. I bought a couple of domains from Godaddy. I linked the domain and the IP address of the device.
Say I have abc.com and xyz.com . When a user tries to access abc.com , I need to show him the site under /var/www/abc/index.html and similarly for xyz.com .
I researched and found that /etc/apache2/ has some settings file that I need to change to do this, but I'm not sure what to do. Can someone give me a hint on how I can achieve this?
A detailed answer may be helpful in understanding.
source share