I've configured two Virtual Hosts using a single IP and following the documentation. Here the conf:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server host1.example.com (/etc/httpd/conf/httpd.conf:1019)
port 80 namevhost host1.example.com (/etc/httpd/conf/httpd.conf:1019)
port 80 namevhost host2.example.com (/etc/httpd/conf/httpd.conf:1024)
If I point my browser to host1.example.com or host2.example.com, I can see the correct corresponding page. If I point to the server name server.example.com, I see the host1.example.com index.html, and not the index.html in the corresponding DocumentRoot (/var/www/html).
Is this the correct behaviour?
httpd -S.