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년 전3197회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠