404 - Not Found error on static website

0

Hello,

Please help me with this issue, must be missing some basic settings.

I have uploaded a static website to my S3 bucket.

  • Did set permissions (read)
  • Did set bucket policy
  • Changed error document to index.html

Whenever i open my website, it suddenly flashes, but after that i get a 404 error.

Thanks

galalex
已提問 4 年前檢視次數 3196 次
1 個回答
0

Hey there,
Based on the S3 HTTP response code document in https://docs.aws.amazon.com/AmazonS3/latest/dev/CustomErrorDocSupport.html

• The URL of the website refers to an object that does not exist
• The request is for an index document that does not exist
• A bucket specified in the URL does not exit
• A bucket specified in the URL exists, but isn’t configured as a website

To troubleshoot check if the following factors are met
• Ensure that you have configured and uploaded an index document that exactly matches the index document name that you enter in the static web hosting dialog box.
• Also ensure that the error document name exactly matches the file name of the html error document that uploaded to your s3 bucket

For reference on configuring index document, check this link
https://docs.aws.amazon.com/AmazonS3/latest/dev/IndexDocumentSupport.html

I hope the provided information helps
Have a great day

prech
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南