View Full Version : [ubuntu] Apache help!

February 25th, 2012, 08:55 PM

First off I would like to mention that I am NOT an ubuntu (or linux) n00b. What I am though is an apache n00b.

I am running in a VM Ubuntu 11.10 server. I have my DNS setup with IP addresses of: (issued from the router, nameserver, domain1) (ip alias, domain2) (ip alias, nameserver)

problem is when I go to domain2.ca i get domain1.ca but when I go to the individual IP address (internally mind you) I get what I am supposed to. Also going to anysubdomain.domain1.ca I get served domain1.ca always.

What am I doing wrong?
I will post any config files needed

February 26th, 2012, 07:25 PM

February 26th, 2012, 08:28 PM
Could you post either your httpd.conf or your virtualhost files. Wherever you are declaring your vhosts, this is almost certainly where the problem lies assuming you have DNS set up correctly.