Course contentsShow
Web Development
Lesson 10 of 2,9821. The Web Platform FoundationFree lesson

What is a Web Server?

Understanding the software and hardware that stores web files and responds to browser requests.

What is a Web Server?

You'll learn: What a web server is and how it delivers web pages to your browser.

The Core Idea

A web server is both the hardware (a computer) and software (a program) that stores website files and sends them to browsers when requested.

Think of a web server like a restaurant kitchen:

  • The hardware is the physical kitchen building with storage
  • The software is the chef who takes orders and prepares dishes
  • The files (HTML, CSS, images) are ingredients stored in the pantry
  • Your browser's request is like placing an order
  • The response is the prepared meal delivered to your table

How It Works

When you type a URL into your browser:

  1. Your browser sends an HTTP request to the web server
  2. The web server software receives the request and finds the right file
  3. The server sends back an HTTP response with the file (and a status code like 200 OK)
  4. Your browser displays the page

Remember from our previous lessons: the Request-Response Cycle happens between your browser and a web server. The server is the one saying "200 OK" or "404 Not Found" back to you!

Common Web Server Software

Popular web server programs include:

  • Apache - one of the oldest and most widely used
  • Nginx - known for speed and efficiency
  • Microsoft IIS - for Windows servers

These programs run 24/7 on powerful computers (the hardware), waiting to respond to requests from browsers around the world.

Key Takeaway: A web server is the combination of computer hardware and software that stores website files and responds to HTTP requests from browsers by sending back the requested web pages.