CDN for EC2 instance
0
Without using application load balancer, I would like to bind Cloudfront to EC2 instance. I created a distribution with domain name ec2-***.**.amazonaws.com with HOST as header but I got
502 ERROR CloudFront wasn't able to connect to the origin. 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.
When I click ec2-***.**.amazonaws.com , no page opens.
asked a month ago7 views
1 Answers
0
Hi, I'm not sure what you mean "When I click ec2-*..amazonaws.com , no page opens". Is ec2-*..amazonaws.com running as a publicly-accessible webserver? If so, it should be OK as an origin for CloudFront.
answered a month ago
Relevant questions
AWS lightsail (wordpress) + static page (CloudFront) on the same domain
asked a year agoAutomatically deregistering the targeted instance
asked 5 months agoAdding Domain Name to CloudFront Distribution
Accepted Answerasked 5 months agoLightsail container as CloudFront Origin returns 404 No Such Service
Accepted Answerasked 3 months agoHow to integrate WAF with an EC2 instance?
Accepted Answerasked 4 years agoApplication Load Balancer for EC2 instance with Elastic IP
asked 3 months agoCDN for EC2 instance
asked a month agoUsing Lightsail with Cloudfront
asked 2 years agoOptions for WAF with a Classic Load Balancer
asked 3 years agoNot able to attach a SSL certificate to a Lightsail distribution
asked a month ago
I am not sure about this. When I go public IPv4 address, my website opens