Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

How Do I Configure My Bucket As a Website?

You can host static websites in Amazon S3 by adding a website configuration to your bucket. You do this by adding the website configuration information to a bucket's website subresource. The only required configuration information is the index document name. You can optionally provide a custom error document name.

There are several ways you can add website configuration to your bucket. You can use the AWS Management Console, which provides a UI to manage website configuration without writing any code. You can use the AWS SDK for Java, PHP, and .NET to programmatically manage website configuration. The AWS SDK provides a wrapper API over the underlying REST API supported by Amazon S3. You can also use a variety of third party tools and libraries for managing your buckets website configuration.

For more information, see Managing Bucket Website Configuration.

If a bucket is configured as a website, the website is accessible via the website endpoints. If you remove the website configuration, the bucket is still available using the REST API endpoint (see Request Endpoints).