Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

I have an S3 bucket where I'm hosting a static website, I had set the properties to use it as static website hosting with index document value index.html.

When I try to access using "https://rtbg33jgjssk.cloudfornt.net/" it shows me this:

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>mywebsitelearningcurve</Name>

...

...

...

</ListBucketResult>

But when I try using "https://rtbg33jgjssk.cloudfornt.net/index.html/" it is working fine.

Any help?

1 Answer

0 votes
by (12.4k points)

Just add "index.html" to the Default Root Object in the distribution setting, that would work fine.

Are you interested to learn AWS, then checkout: AWS Certification

Want to know more about CloudFront, check out:

Related questions

Want to get 50% Hike on your Salary?

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

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...