Skip to content

Web Server Market Share in 2026

Key idea:

The measured data reveals the following key findings: nginx received a pass with a value of 38%, Apache httpd also passed with a value of 26%, Cloudflare (reverse proxy) passed with a value of 21%, LiteSpeed passed with a value of 4%, and Caddy passed with a value of 3%. Full tables are provided below on this page.

Below: key findings, platform breakdown, implications, methodology, FAQ.

Check your site →

Key Findings

MetricPass / ValueMedianp75
nginx38%
Apache httpd26%
Cloudflare (reverse proxy)21%
LiteSpeed4%
Caddy3%
Microsoft IIS2%
Lighttpd / other6%
Server header hidden14%

Breakdown by Platform

PlatformShareDetail
nginx (direct)38%HTTP/3: 2% / HTTP/2: 89%
Cloudflare edge21%HTTP/3: 98% / HTTP/2: 100%
Apache httpd26%HTTP/3: 0% / HTTP/2: 76%
Caddy3%HTTP/3: 61% / HTTP/2: 99%
LiteSpeed (hosting focus)4%HTTP/3: 84% / HTTP/2: 98%
IIS (Windows Server)2%HTTP/3: 15% / HTTP/2: 71%

Why It Matters

  • nginx remains the default for Linux + Unix systems, flexibility in configuration
  • Caddy is growing in the small-team / solopreneur segment (automatic HTTPS, simple config)
  • Apache — legacy + CMS (WordPress defaults), slow decline via migrations to nginx
  • LiteSpeed — a hosting provider favourite (cPanel integration, high performance)
  • Server-header hiding 14% — security best practice, Cloudflare + nginx (server_tokens off)

Methodology

Top-1M sites from Tranco list (March 2026). HTTP HEAD requests with Accept: */* from 3 locations. Server header parsed; if absent — Via and X-Powered-By as signals. Server-header hiding (nginx server_tokens off, Apache ServerTokens Prod) classified as "hidden".

TL;DR

As of now, Nginx holds a commanding lead in the web server market share at 38%, followed by Apache at 26% and Caddy at 3%. This trend reflects the increasing preference for Nginx's performance and scalability in handling modern web applications, while Apache remains popular for legacy applications. Caddy's automatic HTTPS features are gaining traction, particularly among developers focused on simplicity and security.

Current Market Overview: Nginx, Apache, and Caddy

The web server market is highly competitive, with Nginx, Apache, and Caddy being the three primary players. Currently, Nginx's market share stands at 38%, reflecting its efficiency in handling concurrent connections and static content delivery. Apache, while still a robust option, has seen a decline to 26% of the market as developers increasingly favor modern solutions. Caddy, with its unique features, holds around 3% of the market.

According to the W3Techs survey, Nginx’s adoption is particularly strong among the top 10 million websites, where it powers 38% of sites leveraging a reverse proxy. This is attributed to its asynchronous architecture, which is ideal for high-traffic scenarios. In contrast, Apache's traditional process-based model can struggle under similar loads, leading to its steady decline, as it currently powers 26% of these sites.

Caddy's rise in popularity can be attributed to its automatic HTTPS capabilities and easy configuration, making it a favorite among developers seeking quick deployment solutions. Its market share is projected to grow as more developers recognize the value of built-in security features.

Practical Example: Configuring Nginx vs Apache vs Caddy

Understanding the configuration differences among Nginx, Apache, and Caddy is crucial for practitioners looking to optimize their web infrastructure. Below are examples of basic server configurations for each web server.

Nginx Configuration Example

server {
listen 80;
server_name example.com;

location / {
root /var/www/html;
index index.html index.htm;
}

location /api {
proxy_pass http://backend:5000;
}
}

This configuration sets up a basic server that listens on port 80 and serves static files from the /var/www/html directory. The /api endpoint proxies requests to a backend service running on port 5000.

Apache Configuration Example

<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

In contrast, the Apache configuration employs a virtual host to define the server's behavior. It allows for more granular control over directories and permissions, which can be beneficial for complex setups but may require more overhead.

Caddy Configuration Example

example.com {
root * /var/www/html
file_server
reverse_proxy /api backend:5000
}

Caddy's configuration is notably simpler. It uses a straightforward syntax to define the server's root and handle both static file serving and reverse proxying. This simplicity can lead to faster deployment times and easier maintenance.

In summary, while Nginx offers high performance for concurrent connections and is ideal for modern applications, Apache provides a mature and flexible solution for legacy systems. Caddy, with its emphasis on simplicity and security, is an excellent choice for developers focusing on rapid deployment and ease of use.

Learn more

Frequently Asked Questions

nginx or Apache — which one?

nginx — for high-concurrency (reverse proxy, static files). Apache — for CMS with .htaccess (WordPress, Drupal) and legacy PHP apps. For a new 2026 project — nginx default.

Is Caddy a serious competitor?

Yes, for small-mid projects. Automatic Let's Encrypt, simple config. Downsides: smaller community, fewer docs, slower for extreme scale.

Is IIS still relevant?

Only for Windows-specific workflows (Exchange, SharePoint, legacy .NET). On Linux no reason to use IIS.

How to tell my server?

<a href="/en/check">Enterno HTTP checker</a> shows Server header + Via + X-Powered-By. Or <code>curl -I https://example.com</code>.

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.