Hi,
I have 2 different domains which are located at mydomain.com's nameservers. I have them also in my own dns.
In the mydomain.com conf I have specified under web settings that both domains should point to my one and only static IP address which is the one I have on my linux server.
I have setup VirtualHosts in apache and it works fine.
But, since I have my first site in httpd.conf for "virtualhost1".domain1.com it doesn't matter if I browse to aaa.domain1.com, bbb.domain1.com, ccc.domain1.com...I still recieve the content of the first site. (aaa, bbb or ccc is not a virtualhost) If I use "virtualhost1".domain1.com, "virtualhost2".domain1.com and so on it works like it should.
The real problem comes with the second domain. If I browse to i.e aaa.domain2.com that is not setup as a virtualserver I recieve content from "virtualhost1".domain1.com instead of an error like I want it to be.
The "virtualhost1".domain2.com works fine.
Can I somehow control this in httpd.conf or is the problem the settings at mydomain.com?
I have been trying to find info about this with no luck so far.
TIA // tsltsl
I have 2 different domains which are located at mydomain.com's nameservers. I have them also in my own dns.
In the mydomain.com conf I have specified under web settings that both domains should point to my one and only static IP address which is the one I have on my linux server.
I have setup VirtualHosts in apache and it works fine.
But, since I have my first site in httpd.conf for "virtualhost1".domain1.com it doesn't matter if I browse to aaa.domain1.com, bbb.domain1.com, ccc.domain1.com...I still recieve the content of the first site. (aaa, bbb or ccc is not a virtualhost) If I use "virtualhost1".domain1.com, "virtualhost2".domain1.com and so on it works like it should.
The real problem comes with the second domain. If I browse to i.e aaa.domain2.com that is not setup as a virtualserver I recieve content from "virtualhost1".domain1.com instead of an error like I want it to be.
The "virtualhost1".domain2.com works fine.
Can I somehow control this in httpd.conf or is the problem the settings at mydomain.com?
I have been trying to find info about this with no luck so far.
TIA // tsltsl