Friday, February 18, 2011

Host Static Websites on Amazon S3

aws-logoAmazon Web Services' file hosting component S3 recently received a new feature that makes hosting of static websites an easy affair. Users are already taking advantage of the low cost solution to host external files for their blogs and websites – files such as images, stylesheets, JavaScript and so on.

Until now, even though customers were able to configure an Amazon S3 bucket as a website and host static HTML pages but they didn’t function like a website. A visitor attempting to access the root of the website (e.g. http://www.mywebsite.com/) would see the list of objects in the Amazon S3 bucket instead of the website’s home page. Also, if an error occurred, users would see an Amazon S3 error message instead of a website specific error message.

Amazon has now added support for root and custom error documents to address these issues. Users can now add an index.html pages to the root of their website and also add custom 404 error pages, making it possible to host entire websites on Amazon S3 without the need of a web server.

This page will walk you through the steps necessary to host your website on S3. Also checkout Amazon’s help pages on this subject.

Related: Free Amazon Web Services for One Year

0 comments:

Post a Comment

Popular Posts