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. Complete the following steps to enable static website hosting for your bucket.
- With your Amazon S3 bucket selected in the Amazon S3 console, choose the Properties tab.
- Choose Static website hosting, and then choose Use this bucket to host a website.
- For Index Document, type index.html. When you configure a bucket for website hosting, you must specify an index document.
- Make a note of the Endpoint URL at the top of the Static website hosting dialog box. After you enable your bucket for static website hosting, web browsers can access all of your content through the Amazon S3 website endpoint for your bucket.
- Choose Save.