What is Web Hosting

What is Web Hosting

Where websites live, and the kinds of hosting you can rent

What you'll learn

  • Why a website needs a server that's always on
  • The difference between static and dynamic sites
  • Shared, VPS, dedicated and cloud hosting, and what each one gives you
  • How to connect your domain to your hosting

A website is a set of files, but your laptop can't serve it to the world. It goes to sleep, you close it, and your home internet isn't set up for visitors. A website needs a server: a computer that's always on, waits for requests and sends back files. Renting a server, or space on one, is called hosting. Servers live in data centers, with fast internet connections, cooling and backup power.

A static site is the same files for everyone, so the server only sends them. A dynamic site, like an inbox or a shopping cart, is built for each request: the server runs code and reads a database first, so it needs more from the server.

Shared hosting is the cheapest: your site shares one server's memory and processor with hundreds of other sites. A VPS splits a server into separate parts with their own resources, and a dedicated server gives you the whole machine. Cloud hosting, like AWS or Google Cloud, lets you add and remove servers as traffic changes and pay for what you use. Static hosts like GitHub Pages, Netlify and Cloudflare Pages copy your files to servers around the world, often for free. Last, you add your server's IP address to your domain's DNS records, so your domain leads visitors to your server.

More videos

35 short explainers so far, with more on the way

View all videos

Join the Community

roadmap.sh is among the top 10 most starred projects on GitHub and is visited by hundreds of thousands of developers every month.

Top 10 out of 28M!

371K

GitHub Stars

Star us on GitHub
Help us reach #1

+90kevery month

+3.2M

Registered Users

Register yourself
Commit to your growth

+2kevery month

52K

Discord Members

Join on Discord
Join the community

RoadmapsGuidesFAQsYouTube

roadmap.shby@nilbuild

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh·Terms·Privacy·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.