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".
回答済み 2年前
関連するコンテンツ
- 質問済み 5年前
- 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.