The configuration seems to allow access to the website with both the public IP address and the domain name (both has been indexed by Google in my case).
What should be the correct way to prevent (or redirect) access from the public IP address? It would believe that it's an ELB configuration but I couldn't find it.
The configuration seems to allow access to the website with both the public IP address and the domain name (both has been indexed by Google in my case).
Eg: https://107.XX.XX.XX/ and https://www.example.com will both work.
What should be the correct way to prevent (or redirect) access from the public IP address? It would believe that it's an ELB configuration but I couldn't find it.