Skip to content

Instantly share code, notes, and snippets.

@studiomohawk
Created March 13, 2011 04:39
Show Gist options
  • Select an option

  • Save studiomohawk/867868 to your computer and use it in GitHub Desktop.

Select an option

Save studiomohawk/867868 to your computer and use it in GitHub Desktop.
This is a memo for setting up Amazon S3 to host static web site

I'm an absolute newbie on Amazon S3.
I'm not even familiar with setting up DNS and such.
I still don't know what exactly CNAME is.
However, I'll try to understand all of these.

Changelog

  • Downloaded s3sync command line tool to be able to "rsync"(almost) to S3

    I couldn't make files public so I've use [AWS Management Console](Amazon S3: Static Web Sites: Custom Domain or Subdomain) for that.
    I also used AWS Management Console to enable to host static website(Did this via Properties on Drop Down menu says Actions on Buckets pane)

  • Setup new domain layouts-the.me for my new project at godaddy.com

    I've added CNAME host www which points to @layouts-the.me.s3-website-us-east-1.amazonaws.com/
    Still waiting to correctly point to my new domain or I made a mistake not knowing about it.

  • Found out I needed a subdomain at CNAME

    At Go Daddy's ZOne File Editor, I've wrote www at Host which points to www.layouts-the.me.s3-website-us-east-1.amazonaws.com

    Before I have layout-the.me as bucket name at Amazon S3 but I needed to create www.layouts-the.me.

  • This is where I am right now

    Now you can see it at http://www.layouts-the.me/
    My question right now is: is there any way to get rid of www?

    According to https://forums.aws.amazon.com/message.jspa?messageID=224337, it seems impossible. Or Is it?

    For now, I've decided to ignore the issue.
    But I don't even know how to redirect non-www to www URL with go daddy...

List of references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment