← Back to Awesome

Sections

nginx

GitHub repository ↗ synced 2026/8/9

Nginx Resources Awesome

A collection of resources covering Nginx, Nginx + Lua, OpenResty and Tengine.

This list is maintained by Frederic Cambus. For updates, follow me on X: @fcambus

Understanding Nginx

Understanding Nginx versioning
Interview with the creator of Nginx
Interview with Igor Sysoev, author of Apache's competitor NGINX
The case for Nginx in front of application servers
Nginx Optimization: understanding sendfile, tcp_nodelay and tcp_nopush

Architecture

The Architecture of Open Source Applications (Volume 2): nginx
Nginx Guts - Shedding light on Nginx internals
Nginx discovery journey
Nginx Internals
Inside NGINX: How We Designed for Performance & Scale
Thread Pools in NGINX

Configuration

Beginner's Guide
Alphabetical index of variables
Useful Rewrites for Nginx
Nginx Configuration Primer
Nginx Primer 2: From Apache to Nginx
Understanding the Nginx Configuration Inheritance Model
Nginx HTTP server boilerplate configs
Nginx Boilerplate - Configuration template and a set of handy must-have snippets
How to Configure OCSP Stapling in Apache and Nginx
NGINX Config - Online nginx configuration generator
Nice nginx features for developers
Nice nginx features for operators
Avoiding the Top 10 NGINX Configuration Mistakes
Gixy - Nginx configuration static analyzer

Maintained forks: [gixy-ng](https://github.com/dvershinin/gixy), [gixy-next](https://github.com/MegaManSec/Gixy-Next)

Nginx common configuration - Universal config and snippets

Security

BunkerWeb - Next-generation, open-source Web Application Firewall (WAF) based on Nginx

Tutorials

NGINX and NGINX Plus Admin Guide
Introduction to nginx.conf scripting
Optimizing Nginx for High Traffic Loads
NGINX as a WebSockets Proxy
HTTP Keepalive Connections and Web Performance
CORS on Nginx
Serving precompressed content with Nginx and Zopfli
Nginx on FreeBSD
Performing A/B Testing with NGINX and NGINX Plus
Improving NGINX Performance with Kernel TLS and SSL_sendfile()
  • agentzh's Nginx Tutorials (Source)
  • Load Balancing with NGINX and NGINX Plus (Part 2)

Module development

Official Development Guide
Guide to Nginx Module Development
Advanced Topics In Nginx Module Development

APIs

Telize - JSON IP and GeoIP REST API (IP Geolocation) built on Nginx and Lua
GIN - JSON-API framework
Kong - Management Layer for Microservices and APIs

Hacks

Nginx JSON hacks
Using Environment Variables In Nginx.conf
Log rotation directly within Nginx configuration file
Realtime pixel tracking with Nginx, syslog-ng, and Redis
Dynamic log formats in Nginx
Capture and delay unwanted requests
Nginx: a caching, thumbnailing, reverse proxying image server?

Tips

Things you didn't know Nginx could do
Finding the nginx gzip_comp_level sweet spot
nginx mirroring tips and tricks

Nginx + Lua

Nginx, Lua, and beyond
Pushing Nginx to its limit with Lua
Adding OAuth Support to Nginx via Lua
Scripting libdrizzle with Lua inside Nginx
Nginx and Lua
Writing an Nginx authentication module in Lua
Scaling TextRazor in the Cloud with Nginx and Lua
LSSO - Lua + Nginx SSO System with an OAuth Backend
Measuring Nginx Cache Performance using Lua and Redis
nginx-lua - Nginx 1.19+ with LUA support based on Alpine Linux, Amazon Linux, CentOS, Debian, Fedora and Ubuntu.

Nginx + njs

njs scripting language reference and examples
Collection of njs use cases
JavaScript embedded on NGINX - Getting started with njs
Create Nginx extensions in JavaScript
Make your nginx config even more modular and reusable with njs 0.7.7
Diagnostic logging with the NGINX JavaScript module
How to log request headers with NGINX and njs
Using NGINX as an Object Storage Gateway via njs
Easy HTTPS with NGINX and ACME via njs

OpenResty

OpenResty - Fast web app server by extending Nginx
Lapis - A web framework for Lua or MoonScript powered by OpenResty
Nginx image processing server with OpenResty and Lua
Building an OpenResty events server
Ceryx - A dynamic reverse proxy
An Introduction To OpenResty
Programming OpenResty (written by the OpenResty creator)
VeryNginx - Nginx distribution which provides WAF, Control Panel, and Dashboards
  • SysAdvent 2014 - OpenResty, Nginx and Lua (Source)

Tengine

Tengine Web Server
Difference between OpenResty and Tengine

Talks

NGINX Conference 2019 Videos
NGINX Conference 2018 Videos
NGINX Conference 2017 Videos
NGINX Conference 2016 Videos
NGINX Conference 2015 Videos
NGINX Conference 2014 Videos
NGINX User Summit 2014 - Lightning talks