designwithfocus

Domains, hosting & DNS

What Is a Web Server, and Which Types Still Matter?

By Design With Focus Team 5 min read
A server rack beside a browser window requesting a page

Short answer

A web server is the computer, the HTTP software, or both working together, and the types that matter are hardware, software, static, and dynamic. MDN says the software side is at least an HTTP server that understands URLs and HTTP. A static server sends files as-is. A dynamic server adds an application server and a database and updates files before it replies.

Last verified against the sources listed below.

Key takeaways

  • Hardware stores the site files. Software, at minimum, is an HTTP server.
  • A static server sends hosted files unchanged. A dynamic server builds the response.
  • HTTP is a stateless application protocol. The server must answer every request.
  • Nginx and Apache httpd are examples of HTTP server software, not extra MDN types.
  • A missing document comes back as 404 Not Found, which is still an answer.

A plain reading of what is web server and its types starts with two words MDN uses for the same term. A web server can be hardware, software, or both. The types that still organize the idea are static and dynamic.

MDN’s web server article says the hardware is a computer that stores the server software and the site’s files. The software side, at minimum, is an HTTP server. It understands URLs and HTTP, the protocol a browser uses to view pages, and it delivers those files.

What does the hardware store?

The hardware stores the site and the program that serves it. MDN lists HTML documents, images, CSS stylesheets, and JavaScript files as examples, and later adds fonts and video.

That computer connects to the internet and supports physical data exchange with other devices on the web. You could keep the files on a personal computer. MDN says a dedicated machine is usually a better fit because it is typically more available, stays connected except for downtime, and can keep the same IP address.

MDN calls that stable address a dedicated IP address. Not all providers give a home connection a fixed address. Web hosting is the service that rents this kind of machine and the software on it.

What does the software answer?

The software answers HTTP requests. RFC 9110 describes HTTP as a stateless application-level protocol for distributed, collaborative, hypertext information systems.

MDN says the same protocol is textual and stateless. Commands are plain text. Neither the server nor the client remembers earlier messages from HTTP alone, so a password or a half-finished purchase needs an application server. The web server must answer every HTTP request, at least with an error message.

The steps MDN lists are small. The HTTP server checks whether the URL matches a file. If it does, the server sends the file. If it should build a file for that request, it does that instead.

If neither is possible, it returns an error, most commonly 404 Not Found.

Which types does MDN name?

MDN names hardware and software, then static and dynamic. Those are the types. Product names come later, as examples of the software.

Type What it is What it sends
Hardware A computer that stores the software and the site files The files the software selects
Software At minimum, an HTTP server The response to each HTTP request
Static Hardware plus an HTTP server Hosted files as-is
Dynamic A static server plus an app server and a database Content updated before it is sent

A static server sends hosted files unchanged. MDN suggests a first site be static because it is the easiest to set up. A dynamic server updates or generates content, often from a database, before the HTTP server sends it. MDN uses sites such as MDN or Wikipedia as the picture: thousands of pages from a few HTML templates and a large database, instead of thousands of separate HTML files.

MDN also says there is no single application server for every case. Some are built for blogs, wikis, or shops. Others are general. Most developers use an existing server instead of writing one from scratch.

Where do Nginx and Apache fit?

They fit as HTTP server software, which is the software half of MDN’s definition. They are not extra types in that article.

nginx describes itself as an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server. The homepage says it was originally written by Igor Sysoev and is distributed under the 2-clause BSD License. Its basic HTTP features include serving static and index files. It also lists support for HTTP/2 and HTTP/3.

One capacity figure on that page is specific. It says 10,000 inactive HTTP keep-alive connections take about 2.5M of memory. That is a claim about nginx, not a market share number, and not a claim about every web server.

Apache httpd describes the Apache HTTP Server as an open-source web server. The homepage says the project released version 2.4.71 on November 11, 2026, and that 2.4.43 or newer is required to run TLS 1.3 with OpenSSL 1.1.1. It also says the 2.2 line is end of life.

The final 2.2 release was 2.2.34 in July 2017, with no further fixes.

The same homepage says httpd runs on Linux, Windows, macOS, and most Unix-like systems, and that the 2.4 line includes HTTP/2. Those details show what this HTTP server software can do. They do not change MDN’s four-way split.

How does a request end?

A request ends when the server sends a file or an error. How the internet works is the longer path from a click to that exchange. The web server is the machine and program at the end of it.

The browser asks for a URL. The HTTP server looks for a matching file or builds one. It sends the bytes back through HTTP. If you publish a site, MDN says you need either a static or a dynamic web server, then you upload the files.

A small file on that server is the icon in the browser tab. The Favicon Generator makes that icon. The server does not care that the file is an icon. It stores the file and answers the request, the same way it answers a request for HTML.

Frequently asked questions

Is a web server a computer or a program?

MDN says the term can mean hardware, software, or both working together. On the hardware side it is a computer that stores the server software and the site files, such as HTML documents, images, CSS stylesheets, and JavaScript files. On the software side, the minimum piece is an HTTP server. That program understands URLs and HTTP and delivers the hosted content to the browser.

What is the difference between a static and a dynamic server?

A static web server is a computer with an HTTP server, and MDN says it sends hosted files as-is. A dynamic web server is that static server plus extra software, most commonly an application server and a database. It is called dynamic because the application server updates the hosted files before the HTTP server sends them. One example is filling an HTML template with rows from a database.

Why does a missing page return 404?

MDN says that when the server does not find the requested document, it returns a 404 response. Later in the same article, the usual message is 404 Not Found. The web server must answer every HTTP request, at least with an error message. A 404 is that answer. It is not a silent failure. Some designers spend time on the page people see when that error is returned.

Are Nginx and Apache separate types of server?

No. MDN's types are hardware versus software, and static versus dynamic. Nginx's homepage describes nginx as an HTTP web server, reverse proxy, content cache, load balancer, TCP and UDP proxy, and mail proxy. The Apache HTTP Server homepage describes Apache httpd as an open-source web server. Both are examples of the HTTP server software MDN says a web server includes. They are not extra categories in the MDN article.

Can you host a site on a home computer?

MDN says you technically could store the files on your own computer, and that a dedicated web server is more convenient. It is typically more available, it stays connected except for downtime and system trouble, and it can keep the same IP address, which MDN calls a dedicated IP address. Not all internet providers give a home line a fixed address.

Sources