CloudFront for WordPress Origin same as alternative

0

I have a website under site.com and I want to leverage CloudFront to improve the performance. Can I specify site.com for both Origin Domain Name and Alternative Domain Name? If not what is the suggestion? Please consider SEO if I need to change the Url.

질문됨 2년 전457회 조회
1개 답변
1
수락된 답변

You should use the actual DNS name/names you want for your website on the distribution CNAME settings (make sure you have a proper certificate for them, created on Amazon Certificate Manager for free)

The origin should be using a different DNS name, but no one will be able to see it, as all traffic should be fronted by CloudFront.

You need to make sure your Origin Request policy does not or does include the Host header, depending on the way the application is built, and the hostnames on which it "listens".

AWS
답변함 2년 전
  • Are you saying I should use something like origin.site.com for Origin Domain Name and site.com for Alternative Domain Name? Do I need to change something in WordPress for this? Is it just for getting the website IP address?

  • Depending on how you configured your website on Wordpress, but actually you can use CloudFront's Origin Request Policies to forward the origin Host header to your application, regardless of which DNS name was used to access it. In this case no changes are required on your WordPress.

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

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

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

관련 콘텐츠