Nginx by Example Vol. 1
From problem to pattern to production
Author: Jason Joseph Nathan
Publisher finelybook 出版社: Leanpub
Publication Date 出版日期: 2025
Edition 版本: 1st
Language 语言: English
Print Length 页数: 84 pages
Book Description
About the Book
NGINX by Example is a field manual for engineers who never want to Google configs again.
It’s a curated collection of real-world NGINX configurations. Each one battle-tested and wrapped in the context you’d actually use in production.
Every chapter includes:
-
A real infrastructure problem
-
A reusable, production-ready configuration
-
Operational notes, edge cases, and performance tuning tips
What you’ll learn:
-
OCSP stapling, Mutual TLS, subdomain wildcards
-
WebSockets, SSE, fallback logic
-
Blue-green deployments & traffic shaping
-
Brotli & static compression
-
WordPress FastCGI cache (no plugin)
-
Invisible CDNs with
X-Accel-Redirect
You’ll get:
-
A beautifully typeset 79-page PDF (print-ready)
-
Full GitHub access (+ tests) to all configs used
-
Free updates as the book evolves
-
No DRM. Print & deploy freely
Table of Contents
-
Chapter 1: The Hidden Power in Your Web Server
-
1.1 How OCSP Stapling Makes Browsers Trust You Faster
-
1.2 One SSL Config to Rule All Your Subdomains
-
1.3 Mutual TLS Without the Headache
-
1.4 Serve Any Subdomain Without Touching Your Config
-
1.5 The SSL Best Practices That Save You Later
-
Chapter 2: Traffic Isn’t Dumb So Your Server Shouldn’t Be
-
2.1 Handling Real-Time Connections
-
2.2 Reverse Proxies That Outlive Their Upstreams
-
2.3 Let Your API Fail Gracefully with Static Fallbacks
-
2.4 Shift Traffic Gradually with Blue-Green Upstreams
-
2.5 An API Gateway That Knows Who It’s Talking To
-
2.6 Keep Your Gateway Safe and Sane
-
Chapter 3: The Art of Serving Less, Faster
-
3.1 Serve Smaller Pages Without Breaking the Browser
-
3.2 Dynamic Images Without Changing Your Markup
-
3.3 Speed Up WordPress Using Just NGINX
-
3.4 The Invisible CDN Trick Behind Every Display Pic
-
3.5 Pre-Warm Your Cache Like You Mean It
-
3.6 Static Performance That Holds Under Load
-
Epilogue