Hey Fissy,
Thanks for the tip..
I tried the following things..
First I deleted the first VirtualHost entry, cause linking my IP to the /html directory isnt needed, DNS links the names to the correct ip.
I changed my httpd.conf to:
Code:
NameVirtualHost 10.1.11.20:80
#
#
#
</VirtualHost>
<VirtualHost server.Domain1.local:80>
DocumentRoot "/var/www/html/domain1/"
ServerName server.Domain1.local
</VirtualHost>
<VirtualHost server.Domain2.intra:80>
DocumentRoot "/var/www/html/domain2/"
ServerName server.Domain2.intra:80
</VirtualHost>
This had an effect. I tested on my workstation and types in
www.Domain1.local.. I got directed to html/domain1/... great!
Then I tested
www.Domain2.intra, he directed me too html/domain1/ aswell.. failed

.
So I tried ur tip, removing the server names and changed the file to this:
Code:
NameVirtualHost *:80
#
#
#
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/html/domain1/"
ServerName server.Domain1.local
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/html/domain2/"
ServerName server.Domain2.intra
</VirtualHost>
This had no effect, after restarting httpd, both the links still show /domain1/.
It kinda makes sence to me.. When typing in
www.Domain1.local, DNS gives back the IP adress 10.1.11.20:80. Httpd then takes the first VirtualHost that matches the Servername and gives that DocumentRoot.
The problem is, both server.Domain1.local and server.Domain2.intra are linked to the same IP adress (his own, the server).
Could that be the problem?
If it is, how is it fixable? I mean, hosting multiple websites on one server should not be a problem at all!
Thanks in advance guys!