| Did this page help you? Yes No Tell us about it... |
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).