Website delivery foundations
Follow one request from DNS and TLS through reverse proxy, containers, cache, and the browser timeline so a live site can be diagnosed and changed safely.
Complete this path in order
- 01 What happens when you type a URL in the browserWhat happens when you type a URL in the browser: DNS finds an entry, then TLS, a CDN or reverse proxy, and the app. curl timings locate the slow hop. About 7 min
- 02 DNS record typesDNS record types A, AAAA, CNAME, TXT, and CAA store addresses, aliases, proofs, and issuance limits. Apex CNAME, conflicts, TTL, and dig still apply. About 6 min
- 03 Docker Compose productionDocker Compose production on one host: pin the image, hide the app port, keep data and secrets, and prove recreate and restore. About 8 min
- 04 Docker volume permissionsDocker volume permissions follow the runtime UID/GID. Separate named volumes, read-only config, and Compose secrets, then prove recreate and restore. About 7 min
- 05 How to expose Docker portsHow to expose Docker ports without publishing every service: listen inside the container, bind 127.0.0.1 on the host, and verify UFW cannot hide a published port. About 6 min
- 06 Caddy vs Nginx vs NPMCaddy vs Nginx is a maintenance choice: a Caddyfile with automatic HTTPS, existing Nginx configs, or Nginx Proxy Manager's UI and database. About 7 min
- 07 Automatic HTTPS certificate renewalAutomatic HTTPS certificate renewal with Caddy and ACME: persist storage, pick the challenge, and diagnose DNS, ports, and CA limits. About 6 min
- 09 Cache-Control for static assetsSet Cache-Control from whether the URL changes with the file. Fingerprints get a one-year immutable cache; HTML uses no-cache and ETag; CDN TTL stays separate. About 7 min
- 10 Troubleshoot 502 and 504How to troubleshoot 502 and 504 by locating the gateway hop, then testing Docker DNS, ports, logs, and upstream timeout from that proxy. About 7 min
- 11 How to troubleshoot a slow websiteHow to troubleshoot a slow website by splitting DNS, TLS, TTFB, download, and LCP with curl, Chrome Network, CDN headers, and origin metrics. About 7 min
- 12 Website domain migrationMigrate a website to a new domain with one-to-one 301 or 308 hops, new-host canonicals, and Search Console Change of Address. About 7 min