Reputation: 29
When I tried to connect cloud front to EC2, I can see the following error. I set ec2-XXX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com to "origin domain name and path" on Cloud front. What is wrong?
502 ERROR The request could not be satisfied. CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection. We can't connect to the server for this app or website at this time.
There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
I am looking forward to your reply. :)
Upvotes: 1
Views: 2014
Reputation: 35258
A 502 error for CloudFront will come down to a number of issues:
You can read more about the reasoning behind the 502 for CloudFront from the AWS documentation here.
Any further question let me know.
Upvotes: 0