EnableWebsiteHosting

Enabling Website Hosting

Follow the steps below to enable website hosting for your Amazon S3 bucket using the Amazon S3 console. For example walkthroughs that show you how to set up your website with optional configurations such as a custom domain, see Example Walkthroughs - Hosting Websites on Amazon S3.

To enable website hosting for an S3 bucket

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. In the Bucket name list, choose the bucket that you want to use for your static website.

  3. Choose Properties.

  4. Choose Static website hosting.

  5. Choose Use this bucket to host a website.

  6. Enter the name of your index document.

    The index document name is typically index.html. For information, see Configuring Index Document Support.

  7. (Optional) If you want to add a custom error document, in the Error document field, type the error document name, for example, error.html.

    For more information, see (Optional) Custom Error Document Support.

  8. (Optional) If you want to specify advanced redirection rules, in Edit redirection rules, use XML to describe the rules.

    For more information, see Advanced Conditional Redirects.

  9. Choose Save.