How to set up world-class web hosting

Preview:

Citation preview

How To Set Up World-Class Web

Hosting

© TWG 2016 TWG.IO

In this guide you will learn The factors to consider

What “world class” web hosting means

And why it’s the industry gold standard

About Amazon AWS2

Using Amazon S3, Route 53 and Cloudfront

How to set up hosting for your static website3

1

David Pellerin Senior Tech Lead, TWG@davidpellerin

What makes web hosting world class?

Won’t fall down if you experience a sudden spike in traffic

Reliability

Cheap and easy to extend as your audience grows

Scalability2

Fast, effective global content delivery

Performance3

1

Amazon Web Services (AWS)

• World class infrastructure • Cheap and reliable • Great scaling options • Huge range of services • Great community support • Used by pretty much everyone

SOURCE: AMAZON

It’s also incredibly affordable.

(If you’re new to AWS, go see how much you get for free in your first year. It’s

pretty incredible.)

IT ’S PRETTY MUCH UNANIMOUS

AWS is the industry gold standard for web hosting.

Let’s set up a static site on Amazon S3 Using burrito.review as an example

(I love burritos)

What you’ll be using Amazon S3

Route 53 Cloudfront

Step One

• Create an AWS account • To register your domain,

select Route 53

A highly available and scalable cloud Domain Name System (DNS) web service. Staying within Amazon’s ecosystem keeps things simple.

Route 53

• To keep it simple, I used Amazon for domain registration

• This creates DNS records in Route 53

TAKEAWAYS

Across multiple teams and under challenging conditions

Account Success

Step Two

• Click on S3 • Let’s create a bucket to store

the contents of our new website

• Create a new bucket and ensure the name matches your full domain name: www.burrito.reviews

Step Three

• Upload your static site • You can use an app like

Transmit, or my personal favourite (s3cmd) which is available in HomeBrew

1.) brew install s3cmd

2.) setup your access keys

3.) s3cmd put * s3://www.burrito.reviews/

Step Four

• Enable static hosting • Once in S3, click on your

bucket, then click “Properties.”

• Select “Enable Web Hosting”

Step Five

• Let’s take it to the next level and add a CDN to our static site.

• Now we will setup the CDN

• Click on “CloudFront”

• Click on “Create Distribution”

• Under “Web” Click on “Get Started”

CloudFront is a global content delivery network (CDN) service that speeds up delivery of your websites, APIs, videos and other web assets.

Like other AWS services, it’s self-service and pay-per-use so doesn’t require upfront investment.

• Under “Origin Domain Name” Click on the S3 bucket name that looks like the domain you just created.

• Be sure to enter “Alternative CNAMEs” of: “burrito.reviews”, and “www.burrito.reviews”

• Also be sure to enter “Default Document” of “index.html”

• Wait a few minutes for CloudFront to provision it. ⏰

Step Six

• Let’s go back into Route 53

• Go into “Route 53”, and click on “Hosted Zones”, and click on your domain.

• This is where we will create the A and CNAME records for our domain.

• Click on “Create Record Set”

• Name = blank

• Alias = Yes

• Alias Target = Pick your CloudFront name from the dropdown

• Click “Create”

D N S S e t u p

• Name = www

• Alias = No

• TTL = 5 minutes (300 seconds)

• Value = burrito.reviews

• Click “Save Record Set”

D N S S e t u p

IT ’S AS SIMPLE AS THAT

You now have world-class web hosting.

ConclusionWith a CDN that allows users to see your site quickly and reliably

Amazon is a world-class hosting provider

Each with its own learning curve, but there’s lots of support and documentation.

It has tons of services2

Like s3cmd

There’s some great open sources tools out there 3

1

Need a software team to set you up for global success? We can help.

We’ve been building great software for startups and enterprises since 2002.

Understanding our clients’ users and customers

Working with world leaders in innovation

Exploring new business opportunities around emerging technology

We offer software design, development, product strategy and cloud services

From chatbots and APIs to mobile development and cloud infrastructure, we help our clients unlock their full potential in this rapidly changing digital world.

Our mission is to help build the most innovative companies in the world.

Let’s connectTWG builds great software applications for enterprises

and startups

David PellerinSenior Tech Lead

dpellerin@twg.io

@davidpellerin

PRESENTER

Adrienne MarshallBusiness Development

adrienne@twg.io

416 - 850 - 2500

NEW BUSINESS

TWG.IO

Recommended