Configuration
Start Here
- Getting Started with Nginx
- An introduction to Nginx configuration
- Common Configuration Pitfalls
- Guide to the most common web stack with Nginx
Reference
- Phases that nginx goes through to handle an HTTP request
- List of core configuration directives
- List of all directives
Full examples
- Full Example
- Full Example (taken from Nginx site)
- Server Blocks (Virtual Hosts)
- Dynamic SSI
- PHP, Wordpress and Drupal Configuration Examples
- Wordpress Caching (W3TC, WPSC) tests and examples with Nginx
- Running TYPO3 4.6 On Nginx (LEMP) On Debian Squeeze/Ubuntu 11.10
- How To Set Up SSL Vhosts Under Nginx + SNI Support (Ubuntu 11.04/Debian Squeeze)
- ownCloud3 On Nginx (On Debian Squeeze/Ubuntu 11.10)
- ISPConfig Control Panel + nginx on Ubuntu 11.10
- ISPConfig Control Panel + nginx on Ubuntu 12.04 LTS
Applications
- Alkaline
- BruisedFruit
- Chive
- CMS Made Simple
- Codeigniter
- Contao
- Dokuwiki
- Drupal
- Elgg
- Feng Office
- Icinga
- iRedMail
- Joomla
- MediaWiki
- Magento
- Mailman
- MoinMoin
- MTbot
- MyBB
- Omeka
- osCommerce
- OSTicket
- ownCloud
- OXID eShop
- phpBB3
- PHPList
- Piwik
- Pyrocms
- Redmine
- RoundCube
- Shopware 3.5.6
- SilverStripe
- Simple Groupware
- SPIP
- SugarCRM
- Symfony Framework example
- TYPO3
- Wordpress
- XpressEngine
- Xenforo
- Zend Framework
- ZenPhoto
CGI
- Fcgiwrap - FastCGI Wrapper to serve CGI
- Thttpd - Proxying to thttpd to serve CGI
- Proxying to uWSGI to serve CGI
- Serving CGI Scripts With Nginx On Debian Squeeze/Ubuntu 11.04
FastCGI examples
- Simple CGI
- Ruby CGI
- Catalyst
- Mono Server (ASP.NET)
- FCGI::Async module for Perl
- POE::Component::FastCGI module for Perl
- Perl FastCGI How To
- Non-root web path (in Apache-compatible way)
PHP via FastCGI
- PHP/FastCGI Example
- PHP in nginx on OS X
- php-cgi on Windows
- ExpressionEngine
- PHP-FPM HTTPS/SSL environment tips
- PHP-FPM/Nginx Security In Shared Hosting Environments (Debian/Ubuntu)
- PHP-FPM/Nginx - virtual host and PHP-FPM pool setup script (bash)
Python via FastCGI
Python via Passenger
Python via uWSGI
Proxying examples
- Load Balancing Example
- Proxying to Turbogears
- Ruby on Rails / Mongrel
- Nginx as a Proxy to Nagios
- Java servers like Jetty, GlassFish and Tomcat
- WSUS Proxy example
- Nginx solution for Apache ProxyPassReverse
- SSL-Offloading with Nginx
- Reverse Proxy with caching
Rewrite examples
- A Hack for having multiple if conditions on a rewrite
- Serving an iPhone website with nginx
- Referrer Spam Blocking
- Prestashop Rewrites
Browser module examples
Tools
- WiNGiNX : NGiNX + PHP + Node.js + MySQL + MongoDB stack for Windows
- Nginx vhost config generator for Ubuntu (bash script)
- nginx_config_generator for Rails (Ruby gem)
- nginx.vim (config syntax highlighting for Vim)
- Init.d boot-up script for Linux (Original message (imo))
- Capistrano automatic generation of Nginx & Mongrel configuration for VHosts
- htpasswd.py - Don't have Apache installed? You can use this tool to generate/manage your htpasswd files.
- Script for enabling/disabling virtual hosts easily - It mimics the Debian (and Ubuntu) a2ensite/a2dissite but for nginx: nginx_ensite/nginx_dissite.
- MNPP - Mac + Nginx + Percona + PHP or Python A high performance web server in a one-click installer
- vhost config creator automatically generates a new Nginx vhost and an associated system user and web directory (bash script)
Mail examples
Logging
- Disable the errorlog entries caused by the HW-Loadbalancer
- Separate error logs per virtual host, a feature not supported by lighttpd
Other features
- X-Sendfile (=> X-Accel-Redirect) in Nginx
- Nginx/OpenBSD 4.1
- Log Rotation
- Memcache-Preload (experimental)
Embedded Perl examples
- Using the Embedded Perl to resize images
- Using the Embedded Perl to minify javascript files
- Using the Embedded Perl to minify css files
- Using Perl to serve searchengine sitemaps
- Using the Nginx::Simple Perl module