I'm trying to set up virtual hosts on my VPS (centos). I set both domain nameservers to fns1.dnspark.net and fns2.dnspark.net and set an A record there for each domain pointing to my IP address 50.16.219.8. Both domains are currently resolving to the first virtual host. What am I doing wrong?
Thanks!
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot /var/www/root/dylanstestserver.com
ServerName dylanstestserver.com
ServerAlias www.dylanstestserver.com
ErrorLog logs/dylanstestserver.com-error-log
CustomLog logs/dylanstestserver.com-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot /var/www/root/repthis.info
ServerName repthis.info
ServerAlias www.repthis.info
ErrorLog logs/repthis.info-error-log
CustomLog logs/repthis.info-access_log common
</VirtualHost>