Guide
Web Servers
A web server accepts HTTP requests and returns resources or forwards work to an application runtime. Apache, Nginx, Caddy, LiteSpeed and IIS implement different configuration and concurrency models. Serving static files and executing an application are separate responsibilities, even when one product coordinates both.
Meaning and purpose
A web server accepts HTTP requests and returns resources or forwards work to an application runtime. Apache, Nginx, Caddy, LiteSpeed and IIS implement different configuration and concurrency models. Serving static files and executing an application are separate responsibilities, even when one product coordinates both.
How it works in context
A virtual host selects a site using listener and hostname configuration. The document root should expose public assets, not application secrets or private source files. PHP-FPM and other application servers handle dynamic work through a configured interface. Worker and connection limits determine capacity only together with runtime and downstream limits.
Technical terms in this section
Apache
Apache HTTP Server is a modular web server supporting virtual hosts and extensible request handling.
Nginx
Nginx provides event-driven HTTP serving, reverse proxying and load-balancing capabilities.
LiteSpeed
LiteSpeed is a web-server product family with edition-specific serving and caching features.
Caddy
Caddy is a web server and reverse proxy with automatic HTTPS capabilities in supported configurations.
Microsoft IIS
IIS is Microsoft’s web-server platform with site bindings and application-pool management.
HTTP servers
HTTP servers accept requests and return protocol-defined status, fields and representations.
Application servers
Application servers execute dynamic application logic, often behind an HTTP server or reverse proxy.
PHP-FPM
PHP-FPM manages pools of PHP workers serving FastCGI requests.
Node.js
Node.js is a JavaScript runtime commonly used for server-side event-driven applications.
Python application servers
Python application servers connect applications through interfaces such as WSGI or ASGI.
Java application servers
Java application servers host JVM applications and related services under platform-specific interfaces.
Virtual hosts
Virtual hosts select site configuration using listener addresses and requested hostnames.
Server blocks
Nginx server blocks define listeners, hostnames and request-handling configuration.
Document roots
A document root defines public file exposure and should exclude private application configuration.
Server configuration
Server configuration defines listeners, handlers, paths and limits that should be validated before reload.
Access logs
Access logs record request observations and may contain identifiers or sensitive request metadata.
Error logs
Error logs preserve failure details for diagnosis without exposing internals in public responses.
Web server performance
Web-server performance depends on concurrency, processing cost, caching and downstream capacity.
Connection limits
Connection limits bound resource use and must match worker, memory and upstream capacity.
Worker processes
Workers process requests with concurrency and memory costs determined by the server’s execution model.
Compression
Compression reduces transfer size at processing cost and requires compatible encodings and security review.
Caching
Caching reuses prior results using keys and freshness rules that must preserve data isolation.
HTTP keep-alive
Persistent HTTP connections reuse transport sessions and require appropriate timeout and resource limits.
Operational checks and security
Validate configuration before a reload. A 502 often points toward an upstream communication failure; a 500 requires application or server log inspection. Preserve filesystem permissions and avoid making the entire application writable by the web-server account.
Read-only example
These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.
apachectl configtest
# Nginx alternative: nginx -t
Sources and further reading
These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.