aws-samples / aws-refarch-wordpress

This reference architecture provides best practices and a set of YAML CloudFormation templates for deploying WordPress on AWS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent blog access from its public IP address

laurent-le-graverend opened this issue · comments

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.