Virtual hosting all resolving to the same files

Posted by nona urbiz on Server Fault See other posts from Server Fault or by nona urbiz
Published on 2010-12-25T15:49:45Z Indexed on 2010/12/25 15:55 UTC
Read the original article Hit count: 284

Filed under:
|
|

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>

© Server Fault or respective owner

Related posts about dns

Related posts about centos