Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5998605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:25:48+00:00 2026-05-23T00:25:48+00:00

I am looking into serving my static site with Amazon S3. I have created

  • 0

I am looking into serving my static site with Amazon S3. I have created a bucket and uploaded my files; under the “Website” tab in the AWS Management Console I have checked “Enabled” and entered index.html in the “Index Document” field. I have the following bucket policy:

{
    "Version": "2008-10-17",
    "Id": "924a2348-de0e-43aa-bb06-83adbcd1db22",
    "Statement": [
        {
            "Sid": "PublicReadForGetBucketObjects",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::my-bucket/*"
        }
    ]

}

where I have my bucket’s name instead of my-bucket. Under the “Permissions” tab I have also granted “Everyone” the list ability.

If I try to access my-bucket.s3.amazonaws.com/index.html my page (and its images, CSS, etc.) shows up as expected. However, just going to my-bucket.s3.amazonaws.com or my-bucket.s3.amazonaws.com/ gives a directory-listing XML file instead of showing the page. If I try to go to my-bucket.s3.amazonaws.com/subdirectory I get an error (in XML) saying “The specified key does not exist.” Most bizarrely, if I try to go to my-bucket.s3.amazonaws.com/subdirectory/ (with a trailing slash), no page loads but my browser downloads an empty file named download. (Once again, going to my-bucket.s3.amazonaws.com/subdirectory/index.html shows the page as expected.)

Am I doing something wrong here? How do I get S3 to show the index.html file when a directory name is requested?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:25:49+00:00Added an answer on May 23, 2026 at 12:25 am

    Looks like you need to configure a root (index) document:

    http://docs.amazonwebservices.com/AmazonS3/latest/dev/IndexDocumentSupport.html

    http://aws.typepad.com/aws/2011/02/host-your-static-website-on-amazon-s3.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

By looking into the Open JPA website i've found that i can log the
I have been looking into IKVMing Apache's FOP project to use with our .NET
I'm looking into developing a web application hosted on Amazon Web Services and I
Looking into Chrome Developer Tools' Audits tab when launching my Vaadin-based web application, I
I'm looking into ConcurrentHashMap implementation and have a thing make me confused. /* Specialized
looking into hosting sites (for a play framework application) i have noticed 2 options
While looking into the IndexedDB API, I have found several examples of event handlers
I am looking into a friend's site which is really old and strange, and
I have been looking into benchmarking lately, I have always been interested in logging
I have been looking into design patterns in Javascript and found http://tcorral.github.com/Design-Patterns-in-Javascript/Template/withoutHook/index.html to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.