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

How to Host Static Website on Amazon S3 with Bucket Explorer?

Amazon S3 adds new features for hosting static websites, You can now configure and access any of your S3 buckets as a "website." When a request is made to the root of your bucket configured as a website, Amazon S3 returns a root document. Hosting your website on Amazon S3 is almost as easy as uploading your files to an FTP server
 

Steps for Hosting your website on Amazon S3 Using Bucket Explorer :

  1. First Step is to sign up on Amazon S3, If you don't have account on it.
  2. Download the latest version of Bucket Explorer and install it . Now Login to S3 using Bucket Explorer (Amazon S3 Tool)
  3. Create Bucket create amazon s3 bucket Enter the name of the bucket same as your website and select the region where you want to create Bucket.
  4. Select the newly created  bucket and  Upload all the web pages, images, CSS and other static files from your desktop to your Amazon S3 bucket.
  5. Set Permission on all the objects of  bucket  as  ‘Public Readable’.
  6. Click on "Advanced" button from bucket table tool bar. It will show drop down options. Select "S3 Website" among them. Click on "Set S3 Website" option.
  7. S3 Website window will appear with two options for index page and error page. Enter index page and error page name and click on Set button. Set your default page (i.e. index.html) as a Home page. Save the changes. Index document can not be empty and do not add slash character with document page. Note:  It’s not possible to specify specific 4 xx documents, such as 404, 403, and so on; all errors will have to be directed to the same error page. So you can set only one error page.
  8. Now you can easily host your static website on the S3 Bucket. This feature will treat your bucket as website domain means, when you type in browser " http://<bucketname>.s3-website-< region-endpoint>.amazonaws.com " . it will show you default page in browser automatically like distribution does.
  9. Now log in to your domain hosting service and add a new CNAME Record for your domain. eg.mysite.s3-website-us-west-1.amazonaws.com with CNAME as www.mysite.com
  10. Now you can access your website with URL http://www.mysite.com and amazon returns its index page in response as http://WWW.mysite.com/index.html

Region and their Website Endpoint :
 

  • US Standard : s3-website-us-east-1.amazonaws.com
  • US West (Oregon) Region  s3-website-us-west-2.amazonaws.com  
  • US West (Northern California) : s3-website-us-west-1.amazonaws.com
  • EU (Ireland) : s3-website-eu-west-1.amazonaws.com
  • Singapore ( Asia Pacific ) : s3-website-ap-southeast-1.amazonaws.com
  • Tokyo ( Asia Pacific ) : s3-website-ap-northeast-1.amazonaws.com
  • South America (Sao Paulo) Region  s3-website-sa-east-1.amazonaws.com 

Benefits of using S3 website :

  • It's more scalable reliable and safe - use as much or as little storage and bandwidth as you want.
  • One of the main advantages of using Amazon S3 is all the extra load it takes off 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 and thus the closer you become to that breaking point.
  • Hosting of files such as images and CSS styles sheets on a 3rd party service such as Amazon S3, it increases the capacity of server and speeds up for each user. Also if your site has a lot of videos then S3 is going to allow a lot more people to simultaneously watch those videos without greatly affecting the performance of your server.
  • Another advantage is the CDN (Content Delivery Network) which stores your files on various servers all around the world so each users receives the files from the location closest to them - this also speeds up things for your customers.
  • 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 10 MB 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 less than other traditional services.



Related Topics:


 

Give us your feedback