Skip to content

Instantly share code, notes, and snippets.

@nathanbowser
Created October 25, 2016 19:42
Show Gist options
  • Save nathanbowser/e1878b187778840d5096df7ee3bad718 to your computer and use it in GitHub Desktop.
Save nathanbowser/e1878b187778840d5096df7ee3bad718 to your computer and use it in GitHub Desktop.
https://www.foobar.com -> https://foobar.com
https://foobar.com -> https://foobar.com
http://foobar.com -> https://foobar.com
http://www.foobar.com -> https://foobar.com
Two buckets:
foobar.com -> Static site hosting
www.foobar.com -> Static site hosting with generic redirect to foobar.com
Two CDN Distributions:
foobar.com distribution -> Force HTTP to HTTPs redirect; Force HTTP on origin; Point to static website url on foobar.com bucket
www.foobar.com distribution -> Force HTTP to HTTPs redirect; Force HTTP on origin; Point to static website url on www.foobar.com bucket
Route 53:
Alias foobar.com to foobar.com cdn distro
Alias www.foobar.com to www.foobar.com cdn distro
Do 15 jumping jacks and touch your toes 3 times.
Refresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment