UNDER DEVELOPMENT... Learning never stops. Your comments, encouragement or criticism to my blog tkokhing.github.io are most welcome to help me grow. Thank you! ...UNDER DEVELOPMENT

The Web Server You Knew Yesterday Is Gone

Cover Image for The Web Server You Knew Yesterday Is Gone
tkokhing
tkokhing
Updated on:

But Do You Really Know it?

After years of consultation work, I had to write this blog (with this title :p) because I found that many people are still living in the yesteryears when it comes to web servers.

Websites, web applications, cloud platforms, API services and your cannot-live-without AI chatbots on the internet all depend on web servers.

Whether a user is browsing a blog, accessing online banking, streaming media, logging into a SaaS platform, or interacting with an AI-powered application, web servers are involved in receiving requests, processing traffic, and delivering content or services back to users. However, modern web servers do far more than simply host websites.

This article goes beyond the web servers you may have worked with in the past and explores how they have evolved, the different roles they can play, and the technical considerations involved in choosing the right web server technology for modern, internet-scale infrastructure.

Table of Contents

  1. Introduction
  2. What is a Web Server?
  3. Core Responsibilities of a Web Server
  4. How Does a Web Server Work?
  5. Understanding HTTP and HTTPS
  6. Static vs Dynamic Content
  7. Reverse Proxies Explained
  8. Load Balancing Explained
  9. Cloudflare and Modern Edge Infrastructure
  10. Web Servers in Modern Cloud Architectures
  11. Web Servers in AI-Powered Applications
  12. What Web Servers Cannot Do
  13. Security Considerations
  14. Popular Web and Traffic Delivery Technologies
  15. Choosing the Right Web Server
  16. Final Thoughts

Introduction

Today’s web infrastructure relies heavily on web servers for:

  • Reverse proxying
  • Load balancing
  • TLS/SSL termination
  • API routing
  • Caching
  • Traffic filtering
  • Security enforcement
  • High availability
  • Distributed content delivery

Understanding how web servers function provides foundational knowledge for:

  • Web development
  • Cloud computing
  • DevOps engineering
  • Network engineering
  • Infrastructure architecture
  • Cybersecurity

What is a Web Server?

A web server is a network-facing system responsible for handling HTTP and HTTPS requests from clients such as web browsers, mobile applications, APIs, and other services.

Primary role:

  • Receive requests from clients
  • Process incoming traffic
  • Retrieve or generate requested content
  • Return responses to users

A web server may serve:

  • Websites
  • Web applications
  • APIs
  • Images and media files
  • Authentication services
  • Cloud-based applications
  • Dynamic backend content

The term “web server” can refer to either:

TypeDescription
HardwareThe physical or virtual machine hosting services
SoftwareThe application responsible for handling web traffic

In practice, the term commonly refers to the software component, which includes:

  • Apache HTTP Server
  • Nginx
  • Microsoft IIS
  • LiteSpeed
  • Caddy

Modern web servers are highly optimised systems designed to efficiently manage millions of concurrent network connections.


Core Responsibilities of a Web Server

Modern web servers are responsible for far more than delivering HTML pages. They receive HTTP/HTTPS requests from clients, determine how they should be processed, and manage backend or direct content delivery.

Key Web Server Functions

ResponsibilityDescription / Key Examples
Serving Static ContentDirectly delivers static resources like HTML, CSS, JavaScript, Images, Fonts, and Videos.
Processing Dynamic ContentCommunicates with backend services or runtimes (PHP, Node.js, Python, Java, ASP.NET) to generate content on the fly.
Reverse ProxyingSits in front of backend systems to route traffic securely and efficiently.
Load BalancingDistributes incoming traffic across multiple backend servers to improve scalability and availability.
TLS/SSL TerminationHandles the heavy lifting of HTTPS encryption and decryption processes.
CachingStores frequently requested resources locally to improve performance and reduce backend load.
Security EnforcementImplements access controls, request filtering, rate limiting, security headers, and WAF integration.

How Does a Web Server Work?

Web servers operate using a request-and-response model.

The process appears simple from the user’s perspective, but several infrastructure layers are involved behind the scenes.


Step 1 — User Requests a Website

A user enters a URL into a web browser.

Example:

https://example.com

The browser must first determine where the server hosting the website is located.


Step 2 — DNS Resolution

The browser queries the Domain Name System (DNS) to translate the domain name into an IP address.

Example:

example.com --> 93.184.216.34

This tells the browser which server to contact.


Step 3 — Browser Sends HTTP/HTTPS Request

The browser establishes a connection and sends a request to the web server.

Example:

GET / HTTP/1.1
Host: example.com

For HTTPS traffic, TLS negotiation occurs before encrypted communication begins.


Step 4 — Web Server Processes the Request

The web server determines how the request should be handled.

Depending on the architecture, it may:

  • Serve a static file
  • Forward traffic to an application server
  • Query a database
  • Validate authentication
  • Route API traffic
  • Apply security rules
  • Retrieve cached content

Step 5 — Response Returned to Client

The server returns an HTTP response.

Example:

HTTP/1.1 200 OK
Content-Type: text/html

The browser then renders the content for the user.


Understanding HTTP and HTTPS

HTTP

HTTP stands for:

HyperText Transfer Protocol

It defines how clients and servers exchange data across the web.

However, standard HTTP traffic is unencrypted.


HTTPS

HTTPS is the secure version of HTTP.

It uses TLS/SSL encryption to protect data transmitted between clients and servers.

HTTPS helps protect:

  • Credentials
  • Session cookies
  • Financial information
  • Authentication tokens
  • Sensitive user data

Modern websites should always use HTTPS.


Static vs Dynamic Content

Modern web servers deliver content using two distinct approaches depending on how the data is generated and requested.

Static Content

Static content is delivered exactly as stored on the server. Examples include:

  • HTML files
  • CSS stylesheets
  • Images
  • Videos
  • PDFs

~ where, Static content is generally fast and resource-efficient.

Dynamic Content

Generated in real time per request. Highly customized and interactive. Examples include:

  • User dashboards
  • E-commerce platforms
  • Search engines
  • Social media feeds
  • AI-generated responses

These applications often require additional setups:

  • Backend application logic
  • Databases
  • Session management
  • API integrations

Reverse Proxies Explained

A reverse proxy is a server positioned in front of backend systems.

Instead of clients communicating directly with application servers, traffic first passes through the reverse proxy.

Client --> Reverse Proxy --> Backend Server

The reverse proxy then determines how requests should be handled.


Functions of a Reverse Proxy

Traffic Routing

Requests can be routed based on:

  • URL paths
  • Domains
  • Headers
  • Geographic regions

TLS/SSL Termination

HTTPS encryption can be handled centrally by the reverse proxy.

This reduces processing overhead on backend systems.


Security Filtering

Reverse proxies help:

  • Hide backend infrastructure
  • Block malicious requests
  • Enforce rate limits
  • Reduce attack surface exposure

Caching

Frequently requested content may be cached to improve performance and reduce server load.


Common reverse proxy technologies include:

  • Nginx
  • HAProxy
  • Envoy
  • Traefik
  • Apache HTTP Server

Load Balancing Explained

Load balancing distributes incoming traffic across multiple backend systems.

This improves:

  • Scalability
  • Fault tolerance
  • High availability
  • Performance

Without load balancing, a single server may become overloaded or fail entirely.


Simplified Architecture


Benefits of Load Balancing

  • High Availability: Traffic can automatically shift away from failed servers.

  • Horizontal Scaling: Additional servers can be added dynamically as demand increases.

  • Improved Performance: Workloads are distributed evenly across infrastructure resources.


Common Load Balancing Algorithms

AlgorithmDescription
Round RobinRequests distributed sequentially
Least ConnectionsRoutes traffic to least busy server
IP HashMaintains client-server consistency
Weighted RoutingPrioritises higher-capacity servers

Cloudflare and Modern Edge Infrastructure

Modern internet traffic often passes through intermediary edge infrastructure before reaching origin servers.

One widely used example is Cloudflare.

Cloudflare operates as:

  • A reverse proxy
  • CDN provider
  • Security layer
  • Traffic acceleration platform

Instead of exposing backend infrastructure directly to the internet, organisations frequently place Cloudflare in front of their services.


Services Provided by Cloudflare

Cloudflare provides capabilities such as:

  • DDoS mitigation
  • Web Application Firewall (WAF)
  • CDN caching
  • TLS encryption
  • Bot filtering
  • Traffic acceleration
  • Origin IP masking
  • Edge security enforcement

Simplified Traffic Flow

User --> Cloudflare Edge --> Reverse Proxy --> Application Server --> Database

This architecture improves:

  • Global performance
  • Scalability
  • Security posture
  • Infrastructure resilience

Web Servers in Modern Cloud Architectures

Traditional environments often relied on a single web server hosting an entire website.

Modern infrastructure is significantly more distributed.

Today, web servers commonly operate within:

  • Kubernetes clusters
  • Containerised environments
  • Cloud-native platforms
  • Edge computing networks
  • Microservice ecosystems

A modern request may traverse multiple infrastructure layers before reaching the application itself.

Example:

Client
  |
CDN / Cloudflare
  |
Load Balancer
  |
Reverse Proxy
  |
Application Server
  |
Microservices
  |
Database

This layered architecture improves:

  • Reliability
  • Performance
  • Scalability
  • Fault tolerance
  • Operational flexibility

Web Servers in AI-Powered Applications

Modern AI applications further demonstrate how far the role of a web server has evolved.

A user's request may first pass through an edge network, WAF, load balancer, and reverse proxy before reaching the application layer. The application may then communicate with model-serving infrastructure, vector databases, object storage, or external AI APIs before returning the generated response to the user.

This totally differs from the yesteryears of network architecture.


What Web Servers Cannot Do

Despite their importance, web servers are only one component within a much larger infrastructure ecosystem.

Web servers alone cannot solve every infrastructure challenge.


Web Servers Cannot Replace Databases

Web servers are not designed for structured persistent data storage.

Databases remain necessary for:

  • User accounts
  • Transactions
  • Application data
  • Logging systems

Web Servers Cannot Handle Complex Business Logic Alone

Large-scale applications typically rely on backend services and application servers for:

  • Authentication
  • AI processing
  • Financial calculations
  • Workflow orchestration
  • Data analytics

Web Servers Cannot Fully Secure Applications

Even properly configured web servers cannot guarantee security.

Security also depends on:

  • Secure software development
  • Identity management
  • Network segmentation
  • Patch management
  • Monitoring and detection
  • Endpoint security

Web Servers Cannot Prevent All DDoS Attacks

Large-scale attacks often require:

  • CDN providers
  • Traffic scrubbing services
  • Anycast networks
  • Dedicated mitigation infrastructure

Web Servers Cannot Automatically Scale

Scalability typically requires:

  • Load balancers
  • Orchestration platforms
  • Containers
  • Cloud infrastructure
  • Autoscaling systems

Security Considerations

Because web servers are internet-facing systems, they are common attack targets.

Common threats include:

  • SQL injection
  • Cross-site scripting (XSS)
  • Remote code execution
  • Directory traversal
  • Credential attacks
  • Distributed Denial-of-Service (DDoS)

Modern security practices often include:

  • HTTPS enforcement
  • Security headers
  • Rate limiting
  • Web Application Firewalls
  • Zero Trust principles
  • Reverse proxy architectures
  • Continuous monitoring
  • Centralised logging
  • Attack surface reduction

For cybersecurity professionals, understanding web servers is foundational knowledge for both defensive and offensive security operations.


Popular Web and Traffic Delivery Technologies

Modern web infrastructure relies on a combination of technologies to handle web traffic, application delivery, security, and scalability. While some solutions operate as traditional web servers, others function as reverse proxies, load balancers, content delivery networks (CDNs), or edge security platforms.

In practice, organisations often deploy several of these technologies together to create resilient and highly scalable architectures.


Apache HTTP Server

Apache HTTP Server remains one of the most widely deployed web servers in the world and has played a foundational role in the growth of the modern internet.

Known for:

  • Extensive module ecosystem
  • Strong compatibility
  • Flexible configuration
  • Mature community support

Common Use Cases

Apache is frequently used for:

  • Traditional website hosting
  • Shared hosting environments
  • Enterprise intranet portals
  • PHP-based web applications
  • Legacy web infrastructure

Common Users

Apache has historically been popular among:

  • Universities
  • Government agencies
  • Educational institutions
  • Web hosting providers
  • Organisations operating LAMP environments
Linux + Apache + MySQL + PHP

Best Suited For

Apache remains an excellent choice where compatibility, flexibility, and long-term support are priorities.


Nginx

Nginx was designed to solve scalability limitations associated with traditional web architectures and is widely recognised for its ability to efficiently handle large numbers of concurrent connections.

Known for:

  • High performance
  • Low resource consumption
  • Reverse proxy capabilities
  • Load balancing features
  • Cloud-native compatibility

Common Use Cases

Nginx is commonly deployed as:

  • Web server
  • Reverse proxy
  • API gateway
  • Load balancer
  • TLS termination point

Common Users

Nginx is heavily used by:

  • Technology companies
  • SaaS providers
  • Cloud-native platforms
  • High-traffic websites
  • Kubernetes environments

Best Suited For

Nginx is often the preferred choice for modern cloud deployments, microservices architectures, and high-traffic applications.


Microsoft IIS

Internet Information Services (IIS) is Microsoft's web server platform designed specifically for Windows environments.

Known for:

  • Native Windows integration
  • Active Directory compatibility
  • ASP.NET support
  • Enterprise management capabilities

Common Use Cases

IIS is frequently used for:

  • Enterprise web applications
  • Internal corporate portals
  • Microsoft-centric environments
  • ASP.NET applications

Common Users

IIS is commonly found within:

  • Government organisations
  • Financial institutions
  • Healthcare providers
  • Large enterprises standardised on Microsoft technologies

Best Suited For

IIS is an excellent fit for organisations heavily invested in the Microsoft ecosystem.


LiteSpeed

LiteSpeed is a high-performance commercial web server that is often deployed as a drop-in replacement for Apache.

Known for:

  • Excellent performance
  • Low resource consumption
  • WordPress optimisation
  • Advanced caching capabilities

Common Use Cases

LiteSpeed is frequently deployed for:

  • WordPress hosting
  • Shared hosting environments
  • High-performance websites
  • E-commerce platforms

Common Users

LiteSpeed is particularly popular among:

  • Managed hosting providers
  • WordPress hosting companies
  • Small and medium businesses
  • E-commerce operators

Best Suited For

LiteSpeed is ideal for organisations seeking improved performance without significantly changing existing Apache-based environments.


Caddy

Caddy is a modern web server designed with simplicity, security, and automation in mind.

Known for:

  • Automatic HTTPS
  • Easy configuration
  • Secure defaults
  • Developer-friendly deployment

Common Use Cases

Caddy is commonly used for:

  • Personal projects
  • Development environments
  • Startup deployments
  • Small production environments

Common Users

Caddy is popular among:

  • Developers
  • Homelab operators
  • Small engineering teams
  • DevOps practitioners

Best Suited For

Caddy is ideal when simplicity, rapid deployment, and automatic certificate management are important.


Cloudflare

Unlike Apache, Nginx, IIS, or LiteSpeed, Cloudflare is not a traditional web server.

Instead, it operates as a globally distributed edge platform positioned between users and origin infrastructure.

Cloudflare provides:

  • Reverse proxy services
  • CDN capabilities
  • DDoS mitigation
  • Web Application Firewall (WAF)
  • Bot management
  • Edge security enforcement
  • Traffic acceleration

Common Use Cases

Cloudflare is frequently used to:

  • Protect websites from attacks
  • Accelerate global content delivery
  • Improve website performance
  • Hide origin infrastructure
  • Enforce security controls

Common Users

Cloudflare is used by organisations of virtually every size, including:

  • Personal blogs
  • E-commerce platforms
  • SaaS providers
  • Government agencies
  • Financial institutions
  • Large technology companies

Best Suited For

Cloudflare is often deployed as the first line of defence and performance optimisation layer in front of existing web infrastructure.


Choosing the Right Web Server

Selecting a web server depends on business requirements, infrastructure design, performance goals, and operational expertise.

There is no universal "best" web server.

The most suitable solution depends on the problem being solved.


Choose Apache If...

Apache may be the right choice when:

  • Compatibility is critical
  • Existing systems already rely on Apache modules
  • Running traditional PHP applications
  • Maintaining legacy environments
  • Flexibility is more important than raw performance

Choose Nginx If...

Nginx is often preferred when:

  • Handling large volumes of traffic
  • Building cloud-native applications
  • Deploying microservices
  • Operating reverse proxies
  • Implementing load balancing

For many modern environments, Nginx has become the default infrastructure choice.


Choose IIS If...

IIS is usually the best option when:

  • Operating Windows Server environments
  • Using ASP.NET applications
  • Integrating with Active Directory
  • Following Microsoft enterprise standards

Choose LiteSpeed If...

LiteSpeed is particularly attractive when:

  • Hosting WordPress websites
  • Improving performance without major redesign
  • Running high-traffic content sites
  • Managing hosting platforms

Choose Caddy If...

Caddy is well suited when:

  • Simplicity is important
  • Teams are small
  • Rapid deployment is required
  • Automatic HTTPS management is desired

Choose Cloudflare If...

Cloudflare should be considered when:

  • Websites are publicly accessible
  • DDoS protection is required
  • Global users must be served efficiently
  • Security controls need strengthening
  • Website performance needs improvement

For many organisations, Cloudflare complements rather than replaces traditional web servers.


The Reality: Most Organisations Use Multiple Technologies

In modern environments, organisations rarely deploy a single web technology in isolation.

A typical architecture may look like:

Internet Users
      |
   Cloudflare
      |
     Nginx
      |
 Application Servers
      |
   Databases

Or within a Microsoft environment:

Internet Users
      |
   Cloudflare
      |
      IIS
      |
 ASP.NET Applications
      |
   SQL Server

Each component performs a specialised role:

ComponentPrimary Function
CloudflareEdge protection, CDN, traffic acceleration
Nginx / Apache / IISRequest handling and traffic routing
Application ServersBusiness logic processing
DatabasesPersistent data storage

This layered approach improves:

  • Performance
  • Security
  • Scalability
  • Reliability
  • Operational flexibility

and represents how most modern internet-facing services are built today.


This chapter fits naturally after Security Considerations and before Final Thoughts, and it elevates the article from "web server fundamentals" into a more infrastructure-engineering and cybersecurity-oriented piece—consistent with the style of Securing the Digital Frontiers.

Final Thoughts

Web servers are foundational components of modern internet infrastructure.

While they are commonly associated with hosting websites, modern web servers now operate as sophisticated traffic-processing systems responsible for:

  • Request handling
  • Reverse proxying
  • Load balancing
  • Security enforcement
  • TLS termination
  • Distributed content delivery

From small personal websites to global cloud-scale platforms, nearly every online interaction depends on web servers functioning efficiently and securely behind the scenes.

Understanding how web servers work provides critical knowledge for:

  • Web developers
  • DevOps engineers
  • Cloud architects
  • Infrastructure engineers
  • Cybersecurity professionals

As modern systems continue evolving towards cloud-native and distributed architectures, web servers remain one of the most essential technologies powering the internet.