Understanding Phase Order

837 views
Skip to first unread message

bclod

unread,
Feb 17, 2016, 6:04:26 PM2/17/16
to openresty-en
Hello All,

I am trying to make sure I understand all phasing order of lua-nginx-module as it relates to nginx phases.

From lua-nginx-module I have found the following phases listed from readme. I assume these are in order of execution.  Can someone help confirm this?

loading-config
starting-worker
rewrite
content
rewrite tail
access tail
output-header-filter
output-body-filter
log

From agentzh's awesome nginx tutorial https://openresty.org/download/agentzh-nginx-tutorials-en.html#02-nginxdirectiveexecorder08 he defines 11 total nginx phases. For the most part the order seems similar.

post-read
server-rewrite
find-config
rewrite
post-rewrite
preaccess
access
post-access
try-files
content
log
Reply all
Reply to author
Forward
0 new messages