I have elected to use Hexo simply because of how easy it is to use. It allows you to write your posts in markdown and it generates static content for you to upload to S3, Rackspace, or to host on a normal VPS.
In order to host your static website on S3, you will need to generate two buckets and add a CNAME record. I am using CloudFlare as my DNS provider because they will cache the entire site and reduce bandwidth costs.
I will use
example.com as an example.
Login to the AWS Management Panel and go to the S3 page.
Create a new bucket named
Right click on the new bucket and go to
A panel will appear on the right. Go to
Static Website Hosting.
Enable website hostingand set your
This first bucket is where you will upload your static website to. The next one is for redirecting only.
Create another bucket named
Again, right click and go to
This time you will redirect to another bucket.
Redirect all requests to another name.
example.com. You will not upload any files to this bucket.
Login to CloudFlare and go to your site DNS entries.
Add a new
@and point it to your
example.comhostname that was shown in AWS.
wwwand point it to your redirect bucket.
Upload content to your
example.com bucket and you’re done!