Creating a CDN enabled webserver on AWS using CloudFront

What is CDN?

A Content Delivery Network (CDN) is a globally distributed network of web servers or Points of Presence (PoP) whose purpose is to provide faster content delivery.

  1. Firstly we will setup the webserver to host our website.
  2. Then we will mount the website to a non root partition to secure it from an OS failure.
  3. We will create a webpage with the images for webpage stored in an S3 bucket.
  4. Then we will integrate cloudfront with our website to enable

Setting up the Apache WebServer

For hosting a website we need a webserver. I would be using Apache webserver today to setup the website.

  1. First we install the apache server using yum

Creating the Partition

We create partition to host the website in a directory different from the root directory so that the website remains safe in case of an OS failure.

  • Creating a storage unit
  • Formatting the unit
  • mounting the storage unit to the system

Setting up the S3 bucket

This creates a bucket named “isthisavaliable” in region specified.

Setting up the CloudFront



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store