Example: Setting Up a Static Website

You can configure an Amazon S3 bucket to function like a website. This example walks
you through the steps of hosting a website on Amazon S3. In the following procedure, you
will use the AWS Management Console to perform the necessary tasks:

The content that you serve at the website endpoint must be publicly
readable. You can grant the necessary permissions by adding a bucket policy
or using Access Control List (ACL). Here we describe adding a bucket
policy.

Enter the following URL in the browser, replacing
example-bucket with the name of your bucket
and website-region with the name of the region
where you deployed your bucket. For information about region names, see
Website Endpoints ).

You now have a website hosted on Amazon S3. This website is
available at the Amazon S3 website endpoint. However, you might have a domain such as
example.com that you want to use to serve the content from the
website you created. You might also want to use Amazon S3's root domain support to serve
requests for both the http://www.example.com and
http://example.com. This requires additional steps. For an example,
see Example: Setting Up a Static Website
Using a Custom Domain.