Tools

Nginx Cheat Sheet

Print-ready cheat sheet for Nginx, organized for fast lookup, study, and desk-side use

Source
Nginx Documentation (nginx.org/en/docs)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • Installation
  • Basic Config
  • Server Blocks
  • Location Blocks
  • Reverse Proxy
  • SSL / TLS
  • Load Balancing
  • Static Files & Caching
  • Logging
  • Security
  • Common Patterns

Install by OS

Ubuntu / Debian`sudo apt install nginx`
RHEL / CentOS`sudo dnf install nginx`
macOS`brew install nginx`
Alpine`apk add nginx`
Docker`docker run -p 80:80 nginx`

Service Management

sudo systemctl start nginxStart Nginx
sudo systemctl stop nginxStop Nginx
sudo systemctl reload nginxReload config (no downtime)
sudo systemctl enable nginxEnable on boot
nginx -tTest config syntax
nginx -TTest and dump full config
nginx -s reloadSignal running process to reload

Download the full cheat sheet for all sections, formatted for print

Download PDF

Downloads

Choose the treatment that matches how you read