Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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.4k 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

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...