Nginx Cheatsheet
This cheatsheet provides a comprehensive and practical reference for Nginx commands and configuration. It covers basic commands, configuration files, server blocks, location & rewrite, security, logs, command combos, and more. Use it to boost your productivity in web server management and automation.
Use the search bar to quickly find specific Nginx commands or browse through categories for a complete reference. Explore the Command Combos section for powerful multi-step workflows.
access-log
browser-cache
cache
configuration
error-log
headers
http2
https
ip-hash
load-balancing
logging
proxy
proxy-cache
rate-limiting
request
response
security
server
service
ssl
systemctl
upgrade
upstream
variables
websocket
weight
Categories
- Basic Commands
Start, stop, reload, test, and manage Nginx service.
- Configuration Files
Main config, includes, and site-specific configuration files.
- Server Block Examples
Common server block (virtual host) configuration patterns.
- Location & Rewrite
Location matching, URL rewriting, directory listing, and try_files.
- Security & Optimization
Headers, limits, access control, and performance tuning.
- Logs & Monitoring
Log files, log levels, and real-time monitoring.
- Command Combos
Powerful multi-step workflows and advanced usage patterns for real-world scenarios.
Features
- Quick search functionality
- Organized by categories
- Clear command descriptions
- Common and advanced use cases covered
- Easy to copy commands
- Responsive design
- Perfect for quick reference