Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

I am trying to connect my CloudFront distribution to the EC2 instance on which my website is hosted. But I am unable to connect. I end up with an error. How do I troubleshoot this?

1 Answer

0 votes
by (44.3k points)

Check the cookies and headers which are sent in HTTP request, check if they are received. Your website might require a lot of attributes to get routed to that particular CloudFront distribution and it might not be receiving all of it. This might be a reason.

While creating a CloudFront distribution, make sure you give "all" as the option for cache based on select request headers.

For more information on this, you can check out this official docs on Whole site delivery using a CDN.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...