PK / KEK
Govern who may change the policy hierarchy and signature databases. They are not simply keys used to check every kernel.
Touch the components. Step through a launch. Break an upstream. Watch which boundary fails.
Three different journeys share the same hardware: boot starts the system, trust authorizes code, and a request asks a running service for a response. Mixing these journeys is the source of much confusion.
The moving traces show conceptual activity—not literal electrical bus timing. Select any component, or advance through boot.
Firmware initializes enough hardware to choose a boot executable.
On a conventional Ubuntu-style path, firmware checks shim; shim checks GRUB; GRUB verifies the kernel. The accepted kernel continues enforcement, including module-signature policy. Other installations can use different paths, such as a directly bootable Unified Kernel Image.
Authorized: signature and policy permit the next executable to run.
Govern who may change the policy hierarchy and signature databases. They are not simply keys used to check every kernel.
Allow and revoke certificates or image hashes. Applicable revocation blocks an image that otherwise appears trusted.
A valid signature does not prove absence of vulnerabilities. Firmware itself also needs a trustworthy update and protection story.
A Microsoft-signed Linux shim does not mean Windows is installed. Verification uses local public trust material, not an online approval for every boot. Private signing keys remain with the signers. Machine Owner Keys can extend trust in supported workflows; key purpose and scope still matter.
Secure Boot authorizes execution. Measured Boot records measurements, commonly using a TPM, for uses such as attestation and conditional secret release. Recording a measurement alone is not a decision to block code. Windows uses the related Secure Boot → Trusted Boot delegation with Windows-specific components.
Click Launch, then watch the process tree appear. This illustrates a traditional Type=forking nginx unit; packaged units may differ. Nothing runs on your computer.
State: inactive
A syntax error blocks startup at ExecStartPre. A graceful nginx reload starts new workers while old workers finish existing requests. Automatic restart requires a configured policy.
Watch the packet cross the running system. Change the cache or upstream state to see a different journey. DNS and connection setup are omitted here to keep the HTTP boundary visible.
200 OK · Application generates a response. The return trip crosses the proxy chain.
A gateway encountered an invalid upstream response. Connection failures or protocol mismatches are common causes; the exact mapping depends on the proxy.
A gateway did not get a timely upstream response. Timeouts can happen during connection establishment or later waiting.
The edge can answer without invoking the origin application. Cache keys and policy determine when reuse is correct.
Static files can be served directly by the web server. Dynamic work may go through FastCGI to PHP-FPM or through HTTP to a Node, Python or other application server. A CMS is application software—not a kernel, bootloader or network card.
HTTP/1.1 and HTTP/2 commonly use TCP; HTTP/3 uses QUIC over UDP. Different hops can use different protocol versions. A trusted proxy must set and interpret forwarding headers deliberately; arbitrary client-supplied headers are not trustworthy evidence of identity.
Move the slider to see why architecture affects resource use. This is a deliberately simplified teaching model, not a benchmark of Apache or nginx.
Assumed formulas: dedicated = 50 MB + 0.15 MB × connections; event = 80 MB + 0.03 MB × connections. These invented coefficients isolate a concept. They are not measured performance or product sizing advice.
| Question | Apache HTTP Server | nginx |
|---|---|---|
| Concurrency | MPMs: prefork, worker and event. Not one universal process model. | Event-driven workers handling many connections. |
| Idle connections | Event MPM avoids dedicating a request thread to many idle keep-alives. | Connection state still consumes memory despite no thread per connection. |
| Dynamic code | Embedded handlers or external application processes. | Usually external runtimes or upstream applications. |
| Configuration | Central files plus optional .htaccess delegation. | Central files; no .htaccess equivalent. |
| Typical reason to choose | Existing modules, shared-hosting delegation or compatible legacy rules. | Central reverse proxying and high concurrency. |
.htaccess enables directory-level control without global config access, at the cost of additional lookup work when enabled. Running nginx in front of Apache can preserve such compatibility, but adds another operational boundary. Use both only when each has a clear job.
A hardware owner or cloud provider controls the machine. Firmware vendors supply updates. A BMC can remain operational while the host OS is down.
Maintainers ship code; distributors package it; operators choose versions and configure services. Those are separate powers.
A TLS-terminating CDN sees plaintext at that boundary. Domain, DNS, deployment and database access each deserve their own recovery plan.
A server does not require Windows or a graphical desktop. Linux can boot directly into services. Windows Server is an alternative foundation for workloads such as Active Directory or IIS. VMs commonly have their own guest kernel; containers normally share the host kernel. “Serverless” hides servers operationally; it does not remove the machines.
Apache HTTP Server is an Apache Software Foundation project. nginx is associated with F5 and has an open-source edition as well as commercial offerings. Open-source copyright permissions, trademark governance, patent rights and paid support are different subjects.
Apache License 2.0 contains an explicit contributor patent grant subject to its terms; nginx’s BSD-style license does not provide the same express grant. Neither open-source licensing nor standardization guarantees freedom from every third-party patent claim.
Useful contributions include safer service units, reproducible benchmarks, documentation, modules and standards work. Novel patent claims need a specific invention, prior-art search and jurisdiction-specific advice. Public disclosure can affect rights; defensive publication creates prior art but is not automatically a patent license.
systemctl cat nginx.service
systemctl status nginx.service
systemctl show nginx.service \
-p Type -p ExecStart -p MainPID
journalctl -u nginx.service -b --no-pagerFor Apache, try the installed service name: commonly apache2 on Debian/Ubuntu or httpd elsewhere. apachectl is a control wrapper that prepares the environment and invokes Apache.
[Unit]
Description=NGINX web server
After=network.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
[Install]
WantedBy=multi-user.targetAfter= is ordering, not proof of connectivity. PIDFile= identifies a file the daemon writes. Type=forking expects the startup parent to exit while the daemon remains; other units use simple, exec or readiness notification. The illustrated unit is not a distribution-independent replacement.
systemctl start nginx activates the service now.
systemctl enable nginx configures future startup links. Add --now to start it too.
daemon-reload rereads units. reload nginx invokes nginx’s reload procedure. Neither substitutes for the other.
State-changing commands generally need administrative privileges. Before reloading nginx after a config edit, test it: sudo nginx -t && sudo systemctl reload nginx.
Use a disposable VM. Identify its firmware, bootloader, kernel and init system. Inspect the actual web-service unit and its process tree.
Serve identical files with Apache and nginx on different ports, then use the same upstream app. Hold TLS, cache state and response size constant.
In the lab, stop the upstream or add a deliberate delay. Correlate client status, proxy logs and app logs. Restore normal service.
Related directions: DNS and routing; Linux epoll and file-descriptor limits; PHP-FPM and application pools; container isolation; CDN cache correctness; alternatives such as Caddy, HAProxy, Envoy and Traefik. Study the job each component performs rather than treating every product as a drop-in replacement.
This single HTML contains the diagrams, animations, simulations, styling and notes. No external scripts, fonts, image downloads or tracking. Source links sit beside the claims they explain—not in a separate sources directory.
Suggested card tags: Servers, Linux, Security, Web development. Metadata is embedded. Reuse existing tag spellings where equivalents exist; no live publishing command has been run.
Reduced-motion preferences are respected. Use Pause motion to freeze diagrams. All map destinations remain visible and reachable without JavaScript. Preview sandboxes may restrict downloads; the exported file works in a normal browser.