CloudFront and ALB Integration

0

CloudFront - ALB - EC2(Wordpress) - S3 (OAI)

I'm trying to configure something like the above. But there are some problems. [ACM: example.com, *.example.com] HTTPS communication using CloudFront's CNAME and ACM(N.Virginia) + ALB's ACM(Asia/Seoul). With this configuration, a 502 error occurs when connecting to the xxxx.cloudfront.net domain of CloudFront. Conversely, if I register the example.com - xxxx.cloudfront.net A record in Route53 and access the A record, the page loads normally.

Please tell me the answer to the problem.

CloudFront and ALB Integration Please tell me the answer to the problem.

1 回答
0

Hello,

When you setup HTTPS origin in CloudFront, the certificate returned from the origin must be valid and include one of the following domain names:

  • The domain name in the origin’s Origin domain field (the DomainName field in the CloudFront API).
  • The domain name in the Host header, if the cache behavior is configured to forward the Host header to the origin.

Please refer to this document for further information: https://go.aws/3Q0VBuR

Regards,
Franky Chen

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则