Search⌘ K
AI Features

S3 Static Website Hosting

Explore how to enable and configure static website hosting on AWS S3. Understand setting index and error documents, managing bucket permissions for public access, and using custom domains or CloudFront. Learn practical applications like displaying out-of-service pages to save costs during server downtime.

Static websites are web applications that consist of fixed, unchanging content; unlike dynamic websites, where the content is generated on the server dynamically in response to user requests, static websites present pre-built, unaltered HTML, CSS, and JavaScript files directly to the user's web browser.

Static website hosting in S3

S3 buckets allow us to upload static HTML web pages and serve them on region-specific website endpoints. The general format of an S3 endpoint is of two types, depending upon the region.

  • s3-website dash (-) Region: http://bucket-name.s3-website-Region.amazonaws.com

  • s3-website ...