DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeCheatsheetsNginx Cheatsheet

About Nginx Cheatsheet

Nginx Cheatsheet preview - Cheatsheets tool

Reverse proxy, static + SPA fallback, HTTPS, ops commands. Part of the DevTools Surf developer suite. Browse more tools in the Cheatsheets collection.

Use Cases

  • DevOps engineers configuring reverse proxies for microservices
  • Full-stack devs setting up HTTPS for staging environments
  • SREs writing Nginx configs for static file serving and caching
  • Developers deploying React or Vue SPAs with proper fallback routing

Tips

  • Copy the reverse proxy block and adjust upstream and port values
  • Use the HTTPS section to set up Let's Encrypt with certbot
  • Check the SPA fallback snippet for single-page app deployments

Fun Facts

  • Nginx was created by Igor Sysoev in 2004 to solve the C10K problem — handling 10,000 concurrent connections on a single server.
  • As of 2024, Nginx powers over 34% of all websites, making it the most-used web server ahead of Apache.
  • Nginx uses an asynchronous event-driven architecture instead of threads, which is why it handles high concurrency with minimal RAM.

FAQ

Common patterns or reference?
Patterns — reverse proxy, static hosting with SPA fallback, HTTPS termination with Let's Encrypt, and the common rate-limit configuration.
Does it cover ops commands?
Yes — nginx -t (test config), reload vs restart, and log locations. Essential for troubleshooting production.
What about TLS configuration?
Yes — the A+ score config from SSL Labs. Modern ciphers, HSTS, OCSP stapling.
HTTP/2 and HTTP/3?
Both — HTTP/2 requires TLS; HTTP/3 is the newer QUIC-based variant. Configuration snippets for enabling each.

Related Cheatsheets Tools

Git CheatsheetDocker CheatsheetMakefile CheatsheetRegex CheatsheetMarkdown CheatsheetVim CheatsheetBash / Shell CheatsheetSQL Cheatsheet
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback