Glossary

Web Server

A web server is software that answers HTTP requests from browsers, and by extension the machine that runs it. It returns files, or passes requests to an app that builds the page.

What does "web server" mean?

Two things, used interchangeably. As software, it is the program that listens on ports 80 and 443, understands HTTP and returns responses: nginx, Apache httpd, Caddy, LiteSpeed. As hardware, it is the machine that runs that software, along with whatever sits behind it. When someone says "the web server is slow", they might mean either, and the fix depends on which. This page covers both.

What does web server software do?

For every request it reads the method, path and headers, decides which site the host name belongs to, and then does one of two things. For a static file, such as an image, script or prebuilt HTML page, it reads the file and sends it, often straight from the kernel's page cache. For a dynamic request, it forwards the request to an application, such as PHP-FPM, a Python or Node process or a Java app server, and relays its answer. Along the way it handles TLS, compression, caching headers, redirects, logging and access rules.

nginx, Apache or Caddy?

SoftwareStrengthGood fit
nginxEvent-driven, very efficient with many connections, strong reverse proxyMost new setups, high-traffic sites, app front ends
Apache httpdMature module system, per-directory .htaccess filesShared hosting panels, legacy apps that expect .htaccess
CaddyAutomatic HTTPS, short config filesSmall sites and teams that want minimal setup

All three serve static files far faster than most sites need. The choice usually comes down to familiarity and features. Installing and running nginx is covered in Install nginx on Ubuntu 22.04 and Start, stop and reload nginx.

What limits how many visitors one machine can serve?

Rarely the web server software. In rough order of how often they are the limit:

  1. The application. A PHP or Python page that takes 100 ms of CPU means about 10 pages per second per core. Caching pages or fragments changes that by orders of magnitude.
  2. The database. Slow queries hold workers busy. Indexes and enough RAM for the working set fix most of this.
  3. Network. A 1 Gbps port moves about 120 MB per second; at 2 MB per page view that is around 60 page views per second of full page weight. Static assets served by a CDN or cache shift that load.
  4. Monthly traffic. 15 TB of outgoing traffic is roughly 7.5 million page views of 2 MB each; see Outbound traffic allowance.

A cached static page, by contrast, costs microseconds; a single modern core serves thousands per second.

What hardware does a web server need?

For static sites and well-cached apps, very little: E1 or E2 handle a lot of traffic, and their 2x 1 Gbps ports are the practical ceiling. For dynamic apps, cores and clock speed matter: S2 at Intel Xeon E-2356G or S11 with 24 cores. For sites with large catalogs and their database on the same box, RAM keeps queries fast: S5 has 128 GB DDR4. When one machine is not enough, the usual next step is a separate database box, then several web nodes behind a load balancer.

Shared hosting, VPS or dedicated?

On shared hosting, dozens or hundreds of customers sit on one server and the host decides which software is available. A virtual server gives root access but shares the physical CPU and disks with others. A dedicated web server gives you the whole machine, so performance is predictable during busy hours, and you can install any web server, runtime or module. With prices starting at $30.52 a month, the step from a large virtual server to bare metal is often smaller than expected. Bare metal server compares them.

What makes a web server secure?

HTTPS everywhere (Let's Encrypt with nginx), current packages, the web server running as an unprivileged user, the document root separated from config and secrets, directory listing off, admin paths restricted, and a host firewall that only exposes 80, 443 and SSH. Our edge DDoS filtering absorbs floods before they reach the port, while Set up fail2ban can ban scanners that probe for known weak paths. For hosting many customer sites on one box, a control panel helps: see Web hosting with a control panel.

Machines That Serve Web Traffic Well

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S2Intel Xeon E-2356G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$58.39$58.39 (1 month)
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)
S11Intel Core i9-14900K24 / 32128 GB DDR52x 2 TB NVMe2x 10 Gbps$149.39$149.39 (1 month)

Keep Reading

Install nginx on Ubuntu 22.04

Install nginx on Ubuntu 22.04 from the archive or the upstream repository, add a server block and open the firewall in a few minutes.

Open

API server

A server that answers program-to-program requests over HTTP or gRPC, and the CPU, memory and latency factors that shape one.

Open

Web hosting with a control panel

Host client sites under a free hosting panel; one IPv4 serves every HTTPS site through SNI and NVMe keeps PHP pages fast.

Open

Outbound traffic allowance

How the 15 TB monthly egress allowance works, what it means per day and per second, and why inbound data costs nothing.

Open

FAQ

Quick Answers

nginx handles many connections more efficiently and is the common default for new setups. Apache suits apps that rely on .htaccess files.

It depends mostly on the app and caching. Cached static pages run to thousands per second per core; uncached dynamic pages to tens.

Not for small sites. It pays off when you need predictable performance, full control, or the capacity of a whole machine at a monthly price.

The web server handles HTTP, TLS and static files. The application server runs the code that builds dynamic pages.

Port 80 for HTTP and 443 for HTTPS. Open both in the firewall and redirect HTTP to HTTPS.