I currently have a few sub domains and a main domain.
My sub domains are set as "A-records" pointing to the VPS server. However I have tried making seperate Virtual host but when I access all sub domains they link to one directory which is the main.
How do I get each sub domain to point to there correct directory on my VPS? I have tried the virtual host however the problem is still there.
Here is my try:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /var/www/html/hub/ ServerName www.hub.cxw.org ErrorLog logs/dummy-hub.cxw.org-error_log CustomLog logs/dummy-hub.cxw.org-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/html/cxw/ ServerName www.cxw.org ErrorLog logs/dummy-cxw.org-error_log CustomLog logs/dummy-cxw.org-access_log common </VirtualHost>