FAQ

Page Discussion History

Difference between revisions of "Phases"

 
m (capitalization and spelling)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
A request handled by Ngnix goes through a series of phases. Below is the list of this phases, how they can be exited, and which directives and modules apply to each phase.
 +
 +
'''NOTE: this page is still under construction'''
 +
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 7: Line 11:
 
| server selection*
 
| server selection*
 
|  
 
|  
| core/listen core/server_name
+
| [[HttpCoreModule#listen|listen]], [[HttpCoreModule#server_name|server_name]]
 
|-
 
|-
 
| post read
 
| post read
 
|  
 
|  
| realip
+
| [[NginxHttpRealIpModule|HttpRealIpModule]]
 
|-
 
|-
 
| server rewrite
 
| server rewrite
 
|  
 
|  
| rewrite
+
| [[HttpRewriteModule|rewrite]]
 
|-
 
|-
 
| location selection
 
| location selection
 
|  
 
|  
| core/location
+
| [[HttpCoreModule#location|location]]
 
|-
 
|-
 
| location rewrite
 
| location rewrite
 
| ''location selection'', ''finalize request''
 
| ''location selection'', ''finalize request''
| rewrite
+
| [[HttpRewriteModule|rewrite]]
 
|-
 
|-
 
| preaccess
 
| preaccess
 
|  
 
|  
| degradation, limit zone, limit req, realip
+
| [[Modules#Optional_HTTP_modules|degradation]], [[NginxHttpLimitZoneModule#limit_zone|limit_zone]], [[HttpLimitReqModule|limit req]], [[NginxHttpRealIpModule|HttpRealIpModule]]
 
|-
 
|-
 
| access
 
| access
 
| ''finalize request''
 
| ''finalize request''
| access, auth basic
+
| [[HttpAccessModule|allow]], [[HttpAccessModule|deny]], [[NginxHttpAuthBasicModule|auth_basic]]
 
|-
 
|-
 
| try files
 
| try files
 
| ''location selection''
 
| ''location selection''
| core/try_files
+
| [[HttpCoreModule#try_files|try_files]]
 
|-
 
|-
 
| content
 
| content
 
|  
 
|  
| autoindex, core, dav, empty gif, fastcgi, flv, gzip static, index, memcached, perl, proxy, random index, scgi, stub status, uwsgi
+
| [[HttpAutoindexModule#autoindex|autoindex]], [[HttpCoreModule|Core]], [[HttpDavModule|DAV]], [[HttpEmptyGifModule|EmptyGif]], [[HttpFcgiModule|FastCGI]], [[HttpFlvStreamModule|FLV]], [[HttpGzipStaticModule|gzip_static]], [[HttpIndexModule|index]], [[HttpMemcachedModule|memcached]], [[EmbeddedPerlModule|perl]], [[HttpProxyModule|proxy]], [[HttpRandomIndexModule|random_index]], [[HttpScgiModule|scgi]], [[HttpStubStatusModule|stub_status]], [[HttpUwsgiModule|uwsgi]]
 
|-
 
|-
 
| log
 
| log
 
|  
 
|  
| log/access_log
+
| [[HttpLogModule#access_log|access_log]]
 
|-
 
|-
 
| post action*
 
| post action*
 
|  
 
|  
| core/post_action
+
| [[HttpCoreModule#post_action|post_action]]
 
|}
 
|}

Latest revision as of 20:56, 3 February 2014

A request handled by Ngnix goes through a series of phases. Below is the list of this phases, how they can be exited, and which directives and modules apply to each phase.

NOTE: this page is still under construction

phase optional exits modules / directives
server selection* listen, server_name
post read HttpRealIpModule
server rewrite rewrite
location selection location
location rewrite location selection, finalize request rewrite
preaccess degradation, limit_zone, limit req, HttpRealIpModule
access finalize request allow, deny, auth_basic
try files location selection try_files
content autoindex, Core, DAV, EmptyGif, FastCGI, FLV, gzip_static, index, memcached, perl, proxy, random_index, scgi, stub_status, uwsgi
log access_log
post action* post_action