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年前3195ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ