Hello,
I have Apache 2.2.14 on Suse linux 10.3.
That's is ok, and works fine.
Now come's the problem, i have 2 ip addresses, and 2 domains.
Now must Apache listen on the first ip, for the first domain.
And the second ip for the second domain.
But, if i go to the second domain in my browser i will come on the first domain out.
Example:
ip1: 192.168.100.210
Domain1: first-domain.com
ip2: 192.168.100.211
Domain2: second-domain.com
This is my httpd-vhosts
Code:
#NameVirtualHost *:80
<VirtualHost 192.168.100.210:80>
DocumentRoot "/usr/local/apache2/htdocs"
ServerName first-domain.com
ServerAlias www.first-domain.com
</VirtualHost>
<VirtualHost 192.168.100.211:80>
DocumentRoot "/home/roy/public_html/second-domain.com"
ServerName second-domain.com
ServerAlias www.second-domain.com
</VirtualHost>
This does not work correctly.
When i both IP addresses replace with a wilcard (*) , then it's will works fine.
Can any one my help me?
I don't see what i did wrong...