The EC2 is configured correctly, Elastic Ip is attached and the domain is pointing to EC2 linux machine.
Everything is working perfectly fine. But the problem is that all 3 Elastic IP, The Public DNS provided by EC2 and the domain that I pointed to EC2 machine are all displaying the same content and i don't want that. I only want the website or the domain to display the contents and both elastic IP and the public dns should be inaccessible to public or the internet. How do i do that can someone please help?
I want this to work like for instance you bought a dedicated vps package from hostpapa or from a similar hosting provider. The dedicated IP's that they provide you are only accessible until you've connected a domain. The moment you configure the domain and assign one of the dedicated Ip to that domain. The connection from that ip address when ran on a browser gives you either a webmaster error or server not found. I am looking for that kind of solution