Connecting via an IP address may not work as you expect. The best thing to do here is to edit the hosts file on the system you are connecting from and add an entry that points to the new server for the new server. If your server is example.com and it's ip address is 192.168.1.1 then an entry like
It looks like the server you have is configured for [name based virtual hosting]. For this to work the client needs to provide a
Host: header that the server can map to a suitable definiton e.g.
When you connect to your server using just an IP address, no suitable Host: header is provided
so the server returns the content from the default vhost (usually the first one configured).
For the purpose of your testing you need to provide a Host: header for example.com. To do this you need to arrange for example.com to resolve to the IP address of your server. The easiest way to do this is to edit your hosts file asI said above.