This section is an advanced reference to Nginx's features and their configuration. See also:
Module comparison matrix - compare to Apache and Lighttpd
Nginx Core
Main Module - error log, processes, permissions, etc.
Events Module - epoll, kqueue, select, poll, etc.
Standard HTTP Modules
HTTP Core Module - ports, locations, error pages, aliases, and other essentials
HTTP Upstream Module - for load-balancing
Access Module - allow/deny based on IP
Auth Basic Module - HTTP authentication
AutoIndex Module - list files in a directory
Browser Module - interpret "User-Agent" string
Charset Module - recode web pages
Empty GIF Module - serve a 1x1 image from memory
GEO Module - set config variables using key/value pairs of IP addresses
HTTP Headers Module - set arbitrary response headers
HTTP Referer Module - filter requests based on "Referer" string
Limit Zone Module - limit simultaneous connections from a client
Log Module - custom access logs
Map Module - set config variables using arbitrary key/value pairs
Rewrite Module - apply regular expressions to request URIs
SSI Module - server-side includes
UserID Module - issue identifying cookies
Optional HTTP modules
The following modules must be enabled at compile-time.
Module name |
./configure option |
Addition Module - append text to pages |
--with-http_addition_module |
--with-http_perl_module |
|
FLV Module - Flash Streaming Video |
--with-http_flv_module |
--with-http_gzip_static_module |
|
Real IP Module - for using nginx as backend |
--with-http_realip_module |
--with-http_ssl_module |
|
Stub Status Module - view server statistics |
--with-http_stub_status_module |
Substitution Module - replace text in pages |
--with-http_sub_module |
--with-http_dav_module |
|
--with-google_perftools_module |
Third-Party HTTP modules
The following modules are not distributed with the Nginx source.
Module name |
Author |
Download |
Mykola Grechukh |
||
Grzegorz Nosek |
||
Fancy Indexes Module - Like the built-in autoindex, but fancier |
Adrian Perez de Castro |
|
Notice Module - serve static file to POST requests |
Keith Rarick |
|
RRD Graph Module - graph data in Round-Robin databases |
||
SCGI Module - SCGI implementation for Nginx |
Manlio Perillo |
|
Strip Module - whitespace remover |
||
Upload Progress Module - Tracks and reports upload progress |
Brice Figureau |
|
nginx_upstream_hash-0.2.tar.gz (module + patch) |
||
WSGI Module - WSGI implementation for Nginx |
Manlio Perillo |
|
ZIP module - assemble ZIP archives on the fly |
Third-Party Nginx patches
The following patches are not distributed with the Nginx source.
Patch name |
Author |
Download |
Set Real IP header to any variable |
Joaquin Cuenca Abela |
|
Redirect to static file based on it's freshness |
Developer resources
