Web Servers: Apache, Nginx, and Beyond

· Mei-Lin Wu · 8 min read

Web servers are the software programs that power every website on the internet — listening for incoming HTTP requests, processing them, and returning the appropriate response. From the first web server at CERN in 1990 to today's high-performance event-driven architectures handling millions of concurrent connections, web server technology has evolved dramatically. Understanding how web servers work is fundamental to understanding how CDN architecture delivers content at scale, because every CDN edge server is, at its core, a specialized web server.

How Did Web Servers Originate?

The history of web servers is the history of the World Wide Web itself:

Web Server Request Processing — The six-step pipeline from receiving a connection to sending the HTT Web Server Request Processing — How servers handle incoming HTTP requests How a Web Server Processes Requests Client Browser 1. Listen Port 80/443 2. Accept TCP + TLS 3. Parse HTTP request 4. Route Match URL 5. Process Static/Dynamic 6. Respond HTTP response
Figure 1: Web Server Request Processing — The six-step pipeline from receiving a connection to sending the HTTP response

What Is the Difference Between Apache and Nginx?

The Apache vs Nginx comparison illustrates a fundamental architectural choice in server design:

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages
FeatureApache (httpd)Nginx
ArchitectureProcess/Thread per connectionEvent-driven, asynchronous
Memory per Connection~10-15 MB~2.5 KB
Concurrent ConnectionsHundreds to low thousandsTens of thousands to millions
Static File ServingGoodExcellent (2-3x faster)
Dynamic Contentmod_php, mod_perl (in-process)FastCGI, proxy_pass (separate process)
Configuration.htaccess (per-directory)Centralized config only
Module LoadingDynamic (can load at runtime)Compiled in (mostly)
Best ForShared hosting, PHP appsHigh-traffic sites, reverse proxy, CDN origin

Most CDN and high-traffic web architectures now use Nginx (or its commercial version, Nginx Plus) as a reverse proxy in front of application servers. Nginx handles TLS termination, static file serving, load balancing, and connection management, while application servers (Node.js, Python/Gunicorn, PHP-FPM, Go) handle business logic.

What Modern Web Servers Are Available Today?

Beyond Apache and Nginx, several modern web servers have emerged:

How Do Web Servers Function as CDN Origins?

When a website uses a CDN, its web server becomes the "origin" — the authoritative source of content that the CDN caches and distributes. Proper origin server configuration is critical for CDN performance:

What Are CDN Edge Servers Made Of?

CDN edge servers are specialized web servers optimized for caching and proxying at massive scale. Major CDN providers use custom server stacks:

Web Server Market Share — Nginx overtook Apache around 2019 and continues to grow, driven by CDN inf Web Server Market Share Timeline — Apache, Nginx, and others from 2000 to 2025 Web Server Usage Share (2000-2025) 70% 50% 30% 0% Apache Nginx Others 2000 2005 2010 2015 2019 2023 2025
Figure 2: Web Server Market Share — Nginx overtook Apache around 2019 and continues to grow, driven by CDN infrastructure and cloud deployments

External References

References & Standards: HTTP/2 specification · RFC 7234