"Web server" means two things that work together: the computer that holds a website's files, and the software on it that hands them out. The hardware is the machine (often a virtual one rented from a host). The software is the HTTP server: the program that understands URLs and the HTTP protocol, and answers each request MDN.
Every page view, and every visit from a search engine crawler, starts with a request to a web server. That's why speed, uptime and correct responses all begin here.
What happens when someone requests a page
- The browser looks up the domain's IP address through the Domain Name System.
- It sends an HTTP request for the URL to that address.
- The server software checks whether the URL matches a file it holds, or something it should generate.
- It sends back a response: a status code, headers and, usually, the content.
The server has to answer every request, even if only with an error. When it can't find anything for a URL, the usual answer is 404 Not Found. The full set of answers is covered under HTTP status codes.
Static and dynamic web servers
A static web server sends files exactly as they're stored: HTML, CSS, images and scripts.
A dynamic web server adds more software, usually an application server and a database. When a request comes in, the application fills an HTML template with content from the database, then the HTTP server sends the result. A content management system such as WordPress works this way, which is how a site with thousands of pages can run on a handful of templates.
Dynamic pages take more work per request, so they're usually slower to start unless the result is cached.
Common web server software
These are the most common web servers, as a share of websites whose server W3Techs could identify, on October 23, 2026 W3Techs:
| Server | Share of websites |
|---|---|
| Cloudflare Server | 32.6% |
| Nginx | 30.2% |
| Apache | 21.3% |
| LiteSpeed | 13.9% |
| Node.js | 7.4% |
| Microsoft IIS | 2.9% |
The shares add up to more than 100% because some sites use more than one. The top line needs a caveat, though. Cloudflare mostly stands in front of other servers as a content delivery network or proxy server, and W3Techs records the server that answers. So that 32.6% probably says more about how many sites use such a service than about which software runs behind it: the server a visitor talks to isn't always the machine that holds the site.
Why your web server matters for SEO
Search engines don't rank servers, but a server can hold a site back in three ways.
Speed
Time to First Byte measures how long the browser waits for the server's first response. web.dev considers 0.8 seconds or less good. Speed also affects crawling: when your responses stay fast, Google may crawl more; when they slow down, it crawls less Google Search Central. On large sites that changes how quickly new pages get found; see crawl budget.
Errors and downtime
When a server answers with a 5xx error, or 429 Too Many Requests, Google's crawlers slow down. Pages already in the index stay for a while, but if the errors continue, they're eventually dropped Google Search Central.
For planned maintenance, Google's advice depends on how long you'll be down:
- A day or two: return a 503 Service Unavailable page instead of your content. Don't serve robots.txt with a 503.
- Longer: keep an indexable placeholder home page that returns 200. Google warns that closing a site completely, even for a few weeks, can harm how it's indexed.
Correct responses
The server, or the software behind it, decides which status code each URL gets. A missing page should return 404 or 410, not 200 with an error message. A moved page should redirect with a 301. Rules for redirects, headers and HTTPS often live in server configuration files, such as .htaccess on Apache.
Reading your server's logs
Most web servers write an access log: one line per request, with the URL, status code, time and user agent. Because it records every request, including crawlers, it shows things analytics can't, such as which pages Googlebot actually visits and which errors it hits. Reading these files is called log file analysis.
FAQ
Can any computer be a web server?
Yes. With web server software installed, a laptop can serve a site, and developers do this to test sites locally. For a public site, a dedicated server from a host is better: it stays online, keeps the same IP address and is usually maintained for you.
What's the difference between a web server and hosting?
Hosting is the service; the web server is what it provides. A hosting company rents you space on its servers (shared, virtual or dedicated) and usually manages the server software for you.