Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)

Hosting a Static Website on Amazon S3

You can host a static website on Amazon S3. On a static website, individual webpages include static content. They might also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting. AWS also has resources for hosting dynamic websites. To learn more about website hosting on AWS, see Web Hosting.

To host a static website, you configure an Amazon S3 bucket for website hosting, and then upload your website content to the bucket. This bucket must have public read access. It is intentional that everyone in the world will have read access to this bucket. To learn how to configure public read access for your bucket, see Permissions Required for Website Access. The website is then available at the AWS Region-specific website endpoint of the bucket, which is in one of the following formats.


For a list of AWS Region-specific website endpoints for Amazon S3, see Website Endpoints. For example, suppose that you create a bucket called examplebucket in the US West (Oregon) Region, and configure it as a website. The following example URLs provide access to your website content:

  • This URL returns a default index document that you configured for the website.
  • This URL requests the photo.jpg object, which is stored at the root level in the bucket.
  • This URL requests the docs/doc1.html object in your bucket.

Using Your Own Domain

Instead of accessing the website by using an Amazon S3 website endpoint, you can use your own domain, such as, to serve your content. Amazon S3, along with Amazon Route 53, supports hosting a website at the root domain. For example, if you have the root domain and you host your website on Amazon S3, your website visitors can access the site from their browser by typing either or For an example walkthrough, see Example: Setting Up a Static Website Using a Custom Domain.

To configure a bucket for website hosting, you add website configuration to the bucket. For more information, see Configuring a Bucket for Website Hosting.


The Amazon S3 website endpoints do not support HTTPS. For information about using HTTPS with an Amazon S3 bucket, see the following: and