Web Hosting - Overview

What is Web Hosting

So you have your website built. To make it available to online visitors, well, you need to put it online. Sure you can install a web server on your laptop, but you need to make sure it is always power-on, always connected to Internet, and can handle the potentially growing traffic; Or, find him a home in the cloud. That is the "Web Hosting" we are discussing here, a server(or a bunch of servers) hosting your content and always be ready to serve the visitors' requests.

Easy Options

If you think developing a website is hard and time-consuming, try deploying it and maintaining it by yourself. You need to manually config the servers, backup the content, scale up or scale out. Thankfully there are some awesome web services to help us get started. Often times they provide one-click (linux) distributions and apps, and scales automatically.

  • BlueHost

    • starts from $3.95/month
  • Digital Ocean

    • Starts from $5/month.
    • Deploy some popular apps by one-click

Hardcore Options

If you desire more flexibilities, try out the 3 major public clouds:


S3 HTTPS: via CloudFront, $600/month

free https:

Serve static website

Serve dynamic web app

  • cloudflare


Setup Server/Service

Suppose you have your website developed and ready to be deployed, here are a few options

IaaS(Amazon AWS, etc)

By using Infrastructure-as-a-Service, you need to config everything by yourself, here's an example using Apache server

Static Website

Put everything in folder /var/www/mydomain

     DocumentRoot /var/www/mydomain
     ServerName www.mydomain.com

Dynamic Website

e.g. a node.js app named app1, started by node or forever, using port 2599

     ServerName app1.mydomain.com
     ProxyPreserveHost on
     ProxyPass /
     ProxyPassReverse /

PaaS(Heroku, etc)

Deploy your code to app2.herokuapp.com, then add your own domain name app2.mydomain.com

Github Pages

By using Github Pages, you simply create a repository named <username>.github.io and push your code there, then your website can be access by http://<username>.github.io

Cloud Free Tiers

AWS: Free tier for 12 month Google: 60days trial, up to 300Azure:30daystrial,upto300 Azure: 30 days trial, up to200