Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

Hosting a website for $0.10 a month

Posted on 2014-12-07 By Jon No Comments on Hosting a website for $0.10 a month

tf138ca_happy-derp-face-meme-i3
tf138ca_happy-derp-face-meme-i3

Recently I registered the domain “derp.army” and wanted to host a couple static pages on it, on the quick and cheap. Of course I have a server that works perfectly well, but the less complicated the infrastructure (or the less I have to run), the less headaches for me. The best solution for static websites I know of is AWS S3. Since this is obviously going to be an extremely popular website, we can’t forget to add a CDN in front of it, for that I chose Cloudflare. Here’s how I did it in a few easy steps.

Amazon Web Services

Screen Shot 2014-12-06 at 3.35.43 PM
Screen Shot 2014-12-06 at 3.35.43 PM

I assume you’ve already got an AWS account setup and you know how to use it.

  • Go to S3
  • Create a new bucket, name it whatever makes sense to you (it’s internal only)
  • In the bucket properties, “Enable website hosting”
  • Save the endpoint name, you’ll need it later
  • Upload some files to your new S3 bucket, make sure they are marked as public

Cloudflare

Screen Shot 2014-12-06 at 3.42.18 PM
Screen Shot 2014-12-06 at 3.42.18 PM

  • Goto your Cloudflare account and add a new website
  • Your first (and possibly only DNS record): Type = CNAME, Name = @, Value = (Note: You’re right, technically you can’t set the Zone Apex to a CNAME, fortunately Cloudflare has you covered with CNAME flattening)
  • Make sure the record is set active
  • In the Cloudflare settings for the domain, make sure you set SSL to “Flexible SSL”
  • Goto your domain name registrar and set your name servers to those that Cloudflare gives you

Screen Shot 2014-12-06 at 4.06.52 PM
Screen Shot 2014-12-06 at 4.06.52 PM

Wait a length of time and if all goes well, you should be able to check out your new website! If you have the Cloudflare Chrome plugin, it should light up in a lovely orange. If you’re using a free account (to hit that $0.10 price point), it’ll take 24 hours before Cloudflare turns your SSL on. However after that you can force SSL (using page rules). Cloudflare SSL also gives you the bonus of SPDY.

So how did I get $0.10 a month? S3 pricing will cost you in pennies a month for a small site. You do need to pay for per GB for storage, per 10,000 requests to your site, and data transfer out per GB. However, if you have a small site (which we’re assuming) and cache aggressively on Cloudflare, there shouldn’t be much transfer or requests. In fact, if you were tricky, you could use the AWS Free Tier to reduce that price to nothing for the first year!

Cloud Tags:Amazon Web Services, AWS, aws s3, CDN, cloudflare, derp

Post navigation

Previous Post: Migrating Apache SSL Certs to IIS 6.0
Next Post: Using Cloudflare as a Banhammer

More Related Articles

Roundup from AWS re:Invent Day 1 AWS
OpsCrash Episode #3 – Better late than never OpsCrash
AWS SES + Postfix + DKIM Cloud

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

December 2014
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Nov   Jan »

amazon Android anime apache apple arduino asus averatec AWS Bad Company 2 cloud DIY eee fanime fanimecon github google iPad iphone IPv6 javascript kindle linkedin linux macbook air mass effect nodejs openvpn osx php review San Francisco security tutorial Ubuntu urban garden usb video wifi windows 7 winter urban garden wordpress xbox xbox 360 XboxLIVE

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme