处理HTTP请求的11个阶段
如下图:
序号阶段指令备注
1POST_READrealip获取客户端真实IP
2SERVER_REWRITErewrite
3FIND_CONFIG
4REWRITErewrite
5POST_REWRITE
6PRE_ACCESSlimit_conn, limit_req
7ACCESSauth_basic, access, auth_requestauth_basic可以做访问限制
8POST_ACCESS
9PRE_CONTENTtry_files
10CONTENTindex, autoindex, concat
11LOGaccess_logaccess_log记录请求日志