NginxConfiguration
Reference
General Overviews
Full examples
Applications
- Elgg
- Dokuwiki
- Drupal
- Joomla
- Magento
- Mailman
- MediaWiki
- MTbot
- OSTicket
- Redmine
- SilverStripe
- Symfony Framework example
- Wordpress
- ZenPhoto Gallery
CGI
- Incredibly easy wrapper to run CGI scripts without another httpd
- Proxying to thttpd to serve CGI
- patch to make thttpd respect X-Forwarded-For header
FastCGI examples
- Simple CGI
- Ruby CGI
- Catalyst
- Mono Server (ASP.NET)
- FCGI::Async module for Perl
- POE::Component::FastCGI module for Perl
- Javascript V8CGI
- Perl FastCGI How To
PHP via FastCGI
- PHP + Fpm on Ubuntu 10.04 without compiling anything (install nginx with php5 pavkages and php5-fpm without compiling any sources on Ubuntu 10.04)
- PHP-FPM information
- PHP/FastCGI Example
- NGINX, PHP-CGI, SPAWN-FCI, FTP, VHOSTS, MYSQL | centos-fedora-redhat (Install nginx on redhat based systems with virtual host and fast-cgi configurations includes startup scripts too.)
- nWeb Script - Easy installer script for Debian / Ubuntu (Installs nginx, with PHP support and MySQL)
- Drupal + Expires + Gzip (polish language)
- Nginx With PHP As FastCGI Howto (with fcgi-start script)
- PHP in nginx on OS X
- Nginx, PHP and a PHP FastCGI daemon init script (with init script for PHP FastCGI)
- php-cgi on Windows
- ExpressionEngine
Python via FastCGI
Python via Passenger
Proxying examples
- Load Balancing Example
- Proxying to Turbogears
- Ruby on Rails / Mongrel
- Rails caching with X-Accel-Redirect
- Nginx & Mongrel Cluster (with a possible start-stop script) web.archive.org
- 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
- Nginx with Catalyst/Starman as backend webserver
Rewrite examples
- A Hack for having multiple if conditions on a rewrite
- Serving an iPhone website with nginx
- Nice SEO friendly URLs for Wordpress and bbPress
- Rewrite rules for BruisedFruit Ultralight Wiki
- Rewrite rules for Joomla 1.5
- vBulletin with vbSEO rewrite rules
- Blocking Referer Spam with rewrite rules
- Rewrite rules for Prestashop Friendly URLs
Browser module examples
- How to limit browser support to only recent versions of Chrome, Firefox, Internet Explorer and Safari (+ Mobile Safari and Palm Pre)
Tools
- nWeb Script - Easy installer script for Debian / Ubuntu (Installs nginx, with PHP support and MySQL)
- 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.
Mail examples
Logging
- Disable the errorlog entries caused by the HW-Loadbalancer
- Separate error logs per virtual host, a feature not supported by lighttpd
Init Scripts
Red Hat
Ubuntu
- nWeb Script - Easy installer script for Debian / Ubuntu (Installs nginx, with PHP support and MySQL)
- nginx init.d script for Ubuntu 9.04
- Nginx-Init-Ubuntu - Compatible with Ubuntu 8.04 - 9.10
- /etc/init.d/php-fastcgi
- Upstart
FreeBSD
- FreeBSD /etc/init.d/phpfcgid
- FreeBSD /usr/local/etc/rc.d/python_fcgi
- FreeBSD /usr/local/etc/rc.d/spawn-fcgi
OSX
Others
Other features
- X-Sendfile (=> X-Accel-Redirect) in Nginx
- Nginx/OpenBSD 4.1
- Godaddy Turbo SSL on Nginx
- Log Rotation
- Block Hotlinking
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
External Resources
- Cliff Wells' Blog
- MTecknologys' Blog
- Homo Adminus
- brainspl.at
- ficovh blog (spanish only)
- TYPO3, nginx and memcache
Installation
- Setting up a LEMP Stack (Linux, Nginx, MySQL, PHP5) on Ubuntu 9.04
- nWeb Script - Easy installer script for Debian / Ubuntu (Installs nginx, with PHP support and MySQL)
- Installing recent versions from Debian Repositories (testing and sid)
- Installing on Solaris 10 u5
- Installing on OpenSolaris 2008.11
- Installing NginX as a Windows Service with FireDaemon (Restarts properly, without orphaning nginx.exe processes).












