download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

How to Configure Amazon S3 Bucket for Website Hosting (Get Bucket Website, PUT Bucket Website, DELETE Bucket Website)-Introduction

Amazon S3 supports S3 Website , which allows you to set S3 Bucket as S3 Website. With this feature, you can easily host your static website on the S3 Bucket. This feature also allows you to define error 4XX page to display if error occurs.

Amazon S3 supports multiple operations to Configure S3 Websites, Define the Index Documents, Define 4xx pages, Deleting S3 Website. you can use the below two methods to manage S3 Websites:

How to perform S3 Website Operations?

  • Using S3 REST API

    You can perform S3 Website operations by using Amazon S3 Website supported REST API in your application code.

  • Using Bucket Explorer

    You can perform the same S3 Website operations using Bucket Explorer without the hassle of writing code.

You can perform the following S3 Website operations:

  • Set S3 Bucket as S3 Website: You can set S3 Bucket as S3 Website and host your static website on the S3 Bucket using PUT Bucket Website request. Check the link to get more details about Set S3 Bucket as S3 Website — PUT Bucket Website using Amazon REST API and using Bucket Explorer.
  • Set error 4XX page: You can set and define error 4XX page to display if an error occurs using PUT Bucket Website request. You only need to add routing rules and set an error page. Check the link to get more details about Set error 4XX page — PUT Bucket Website using Amazon REST API and using Bucket Explorer.
  • Get Website Configuration: You can get the website configuration set on the bucket using Get request.
  • Delete S3 Bucket as S3 Website: You can delete website configuration for an S3 Bucket using DELETE Bucket Website request. Check the link to get more details about Delete S3 Bucket as S3 Website — DELETE Bucket Website

Benefits of using S3 Website:

  1. It’s more scalable, reliable, and safe — use as much or as little storage and bandwidth as you want.
  2. One of the main advantages of using Amazon S3 is that it takes off all extra load from your server. Every server, whether shared or dedicated, has a breaking point. The more people on your site and the more requests those people are sending to your server, the closer you come to the breaking point.
  3. Hosting of files such as images and CSS style sheets on a 3 rd party service such as Amazon S3 increases the capacity of the server and speeds up for each user. Also, if your site has a lot of videos, S3 is going to allow more people to simultaneously watch those videos without greatly affecting the performance of your server.
  4. Another advantage is the CDN (Content Delivery Network) which stores your files on various servers all over the world so each user receives the files from the location closest to them — this also speeds up things for your customers.
  5. Unlike web hosting companies, Amazon S3 follows a “pay for what you use” model where you only have to pay for the exact amount of storage and bandwidth that your website is consuming in a month. According to some rough calculations, if you have a 20 page website that takes about 10MB of storage space and your site gets 200 visitors per day, the monthly hosting bill with Amazon S3 should be around $5 per month which is much lesser than other traditional services.