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,570 points

edited Oct 16, 2019 by Hannah 1,884 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 17, 2019 by Tanmay

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

how to get aws account number /id based on EC2 instance which is hosted in amazon

You can obtain account number from an ...READ MORE

answered Feb 21, 2022 in AWS by Korak
• 5,820 points
1,677 views
+3 votes
4 answers

How to host a website on AWS?

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

answered Mar 30, 2018 in AWS by brat_1
• 7,200 points
2,462 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
• 58,090 points
769 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP