Hello Experts, I have setup two virtual host pointing to same content mapped to ip 192.168.1.100. Everything works fine. But now my requirement is that when user enters the ip address instead of the domain name, the server should serve a different page instead of the index page of the domain. For now if i enter the domain name http://test.com and when i enter http://192.168.1.100, I am served with the index.html page of virtual host. Now, what i want is that when the user enter http://192.168.1.100, the server should serve default.html.
http://test.com ---> index.php
http://192.168.1.100 ---> default.html
The above is the summary as to what i want. Please advice me how to go about.
By the way I am using Ubuntu 14.04 LTS and Apache 2.4.7 for your kind information
** Sorry for posting in the wrong place. I would like to request the admin to kindly post it in the apache forum.