My instance is accessible from ipv4 address and public DNS. I want it to be accessible from domain name only.

0

Hello, I installed WordPress on Amazon AWS (EC2 Instance)

The problem is that my website is accessible from ipv4 address, public DNS and domain name. Like for testing purpose i used

decodewithdude.ga

The domain is accessible from http://13.233.253.149/

https://ec2-13-233-253-149.ap-south-1.compute.amazonaws.com

https://decodewithdude.ga

I want the instance only be accessible to public from domain name.

Thankyou

1개 답변
2
수락된 답변

Sounds like you're running a single WordPress instance with a public IP? The best approach is to make it private and put it behind an AWS load balancer or CloudFront distribution. Probably CloudFront if you're only running one instance. Then your DNS can be an A "Alias" record in Route 53 - a special link to an AWS service that isn't tied to a specific IP address (though of course, being DNS, it will still resolve on the fly to an IP address).

Note a custom origin like this behind CloudFront still requires the instance to have a public IP address but it can be locked down using an AWS-managed prefix list for CloudFront - it opens ingress only to CloudFront IPs so that's the only way people can access your site - through CloudFront.

전문가
답변함 2년 전
  • Hi, Thankyou for answering. I really appreciate it. Can you please guide me what should i do first and then further so to achieve it. I am a newbie in AWS . So i will appreciate it if you guide me.

    Thankyou

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠