Connect CloudFront to a website hosted on an EC2 instance - AWS

+1 vote
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?
Oct 16, 2019 in AWS by Hannah
• 18,070 points

edited Oct 16, 2019 by Hannah 770 views

1 answer to this question.

0 votes
Hi @hannah,

Have a look at the application/website needs of headers, cookies or query strings so that you can configure your CloudFront to provide all of these. There are high chances that your CloudFront distribution is not able to provide everything your website requires.

Let me know if this works!
answered Oct 16, 2019 by Tanmay

Related Questions In AWS

0 votes
1 answer
+3 votes
4 answers

How to host a website on AWS?

Certainly, it can be used to do ...READ MORE

answered Mar 29, 2018 in AWS by brat_1
• 7,170 points
495 views
0 votes
1 answer

How to set up a SPF(Sender Policy Framework) for AWS EC2 instance?

Setting up a SPF record is pretty ...READ MORE

answered Aug 16, 2018 in AWS by Archana
• 4,150 points
521 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

how to connect my ec2 instance to a registered domain?

Hard to troubleshoot on here- but I ...READ MORE

answered Sep 24, 2018 in AWS by Priyaj
• 57,550 points
143 views
+1 vote
1 answer