nginx
This folder has no README. Everything inside it is listed below.
Notes
- How to Configure Communication Between Multiple VMs via Nginx 3 Nginx can be configured as a reverse proxy and load balancer to enable communication between multiple Virtual Machines (VMs).
- Nginx Architecture 6 Nginx is fast because of how it handles concurrency, not because of any single optimization.
- Nginx Directives and Contexts 6 Nginx config is a tree of nested blocks (called "contexts").
- Nginx Location Matching 6 location blocks match request URIs. The matching rules are not "first one wins" — they have a specific priority that confuses everyone the first time.
- proxy_pass and the Trailing Slash Trap 6 The single most-asked nginx gotcha: proxy_pass http://backend; and proxy_pass http://backend/; route the same request to different upstream URIs.
- Nginx Upstreams and Load Balancing 6 The upstream block defines a pool of backend servers. proxy_pass http://<upstream-name> routes to that pool.
- Nginx + Gunicorn — The Canonical Python Deploy 6 The standard production stack for a Django/Flask/FastAPI app: nginx in front, Gunicorn (sync) or Uvicorn (async) workers behind, static files served by…
- Nginx Caching 6 proxy_cache makes nginx serve cached upstream responses without bothering your Python app.
- Nginx Static Files and Compression 6 Two nginx superpowers: serving static content at near-line-rate via sendfile(), and compressing responses on the fly.
- Nginx WebSocket Proxying 6 WebSockets start as HTTP, then "upgrade" to a long-lived bidirectional connection.
- Nginx Rate Limiting 6 Two tools: limit_req (request rate per key) and limit_conn (concurrent connections per key).
- Nginx TLS Configuration 6 The bare-minimum config "just works"; the production config has 8–12 directives that matter for security, performance, and grade.
- Nginx Troubleshooting 6 Common production errors and what they actually mean.
- Nginx vs Alternatives 6 Comparison interviewers reach for: Apache, Caddy, Traefik, Envoy, HAProxy.
- OpenResty: Lua inside Nginx 4 OpenResty is Nginx bundled with LuaJIT and a set of Lua libraries, so request handling logic (authentication, routing decisions, rate limits) can run inside…