Apache Vhost Help Needed
I had it working and now I am trying to do something more complex but I can't get it working.
I have one IP which has 10 domains on it.
Then I have 4 more IPs and each IP has only 1 domain assigned to it.
In each domain.com.conf file I have:
<VirtualHost IP:80>
In listen.conf I have:
NameVirtualHost IP1:80
NameVirtualHost IP2:80
NameVirtualHost IP3:80
NameVirtualHost IP4:80
NameVirtualHost IP5:80
I am sure I am missing something but I don't know what or where.
The problem is all domains go to the same domain, which is the first conf file in the dir. They are not being directed to the correct domains. Even the stand alone domains with their own IP which DNS points to.
What am I doing wrong?
All the CONF files are in the same directory BTW. I tried including each one seperatly in httpd.conf instead of *.conf but nothing different happens.
The edits I mentioned to listen.conf and the addition of the domain.com.conf files are the only changes to Apache files I have made.
I think there is more that needs to be added to listen.conf? Not sure though.
|