Home >  Archive >  2011 >  March >  8


Previous / Next

How to use the new host-a-website feature on S3

By Dave Winer on Tuesday, March 08, 2011 at 1:28 PM.

You can find all the links on Werner Vogel's blog. I share his enthusiasm for the new host-a-website feature. I was asking for it for a long time. I guess, from reading the tea leaves, he was too. :-) Permanent link to this item in the archive.

Anyway, I had to do a bunch of trial and error to get my first S3-hosted static site configured. I wanted to leave a howto behind me so next time I won't have to do the head-scratching again. Maybe it will help you too.  Permanent link to this item in the archive.

A picture named money.jpgSuppose the domain you want to host on S3 is r2.reallysimple.org. And the index file for that domain will be index.html. This is what you do. Permanent link to this item in the archive.

1. Go to the S3 panel on the AWS website and create a new bucket called r2.reallysimple.org in the US-Standard region.  Permanent link to this item in the archive.

2. Upload a file called index.html to the new bucket. Say something simple like Hello World. You can copy the HTML from my test file if you want.  Permanent link to this item in the archive.

3. Click on Properties at the top of the right panel, then click on Website in the lower-right panel. Click the Enabled checkbox, and enter index.html as the Index Document. Click Save.  Permanent link to this item in the archive.

4. Click Permissions in the lower-right panel. Then click on Edit bucket policy. Paste in the template text you grab from this file. Edit it to replace YOUR-BUCKET-NAME-GOES-HERE with the name of your bucket (in the example r2.reallysimple.org). Click Save.  Permanent link to this item in the archive.

5. Now go to your domain registrar, and map r2.reallysimple.org as a CNAME to r2.reallysimple.org.s3-website-us-east-1.amazonaws.com. Permanent link to this item in the archive.

Now you should be able to go r2.reallysimple.org and see the text of your index file. :-) Permanent link to this item in the archive.




About the author

A picture named daveTiny.jpgDave Winer, 55, is a visiting scholar at NYU's Arthur L. Carter Journalism Institute. He pioneered the development of weblogs, syndication (RSS), podcasting, outlining, and web content management software; former contributing editor at Wired Magazine, research fellow at Harvard Law School, entrepreneur, and investor in web media companies. A native New Yorker, he received a Master's in Computer Science from the University of Wisconsin, a Bachelor's in Mathematics from Tulane University and currently lives in New York City.

"The protoblogger." - NY Times.

"The father of modern-day content distribution." - PC World.

One of BusinessWeek's 25 Most Influential People on the Web.

"Helped popularize blogging, podcasting and RSS." - Time.

"The father of blogging and RSS." - BBC.

"RSS was born in 1997 out of the confluence of Dave Winer's 'Really Simple Syndication' technology, used to push out blog updates, and Netscape's 'Rich Site Summary', which allowed users to create custom Netscape home pages with regularly updated data flows." - Tim O'Reilly.

Contact me

scriptingnews1mail at gmail dot com.

Facebook

Twitter

Friendfeed

My sites
Recent stories

Recent links

My 40 most-recent links, ranked by number of clicks.

My bike

People are always asking about my bike.

A picture named bikesmall.jpg

Here's a picture.

Calendar

March 2011
Sun
Mon
Tue
Wed
Thu
Fri
Sat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 

Feb   Apr

Warning!

A picture named warning.gif

FYI: You're soaking in it. :-)


A picture named xmlMini.gif



© Copyright 1997-2011 Dave Winer. Last update: Tuesday, March 08, 2011 at 6:59 PM Eastern. Last build: 3/17/2011; 10:06:07 AM. "It's even worse than it appears." RSS feed for Scripting News


Previous / Next