Good morning, I have 2 servers (#1 and #2) My domain name is pointed to #1 and there in the DNS zone I pointed the "A record" to #2 IP address, (with this setup I can have mails on #1 and website on #2). I know it's easier to make it the other way around but #2 is 100% configured by hand (#1 has cpanel) and I want to avoid potential DNS and mail issues.
The #2 is running Apache2 and I have virtual hosts configured there, however my domain name loads /var/www content (apache default) and not /home/myuser/www/ which is the patch specified as DocumentRoot. I know virtual hosts are properly configured because previously I had the domain name pointed to #2 and they worked well.
What I am missing here guys?
apache2.conf: http://pastebin.com/52WB7LUw
nslookup example.com
, would I get the IP address of #1 or #2? Are you stating #1 is a DNS server that is authoritative for your domain? Is the problem you are having now that people can reach your site on #2, but are getting the wrong content?