log阶段
Log 模块 功能: 将HTTP请求相关信息记录到日志 模块: ngx_http_log_module 无法禁用 指令: log_format name [escape=default|json|none] string ...; 默认: log_format combined "..."; 可以使用在: http 默认 combined 日志格式 log_format combine...
Log 模块 功能: 将HTTP请求相关信息记录到日志 模块: ngx_http_log_module 无法禁用 指令: log_format name [escape=default|json|none] string ...; 默认: log_format combined "..."; 可以使用在: http 默认 combined 日志格式 log_format combine...
Nginx的11个阶段 1. post_read 在所有read请求的头部之后, 获取其请求的原始值, 如: realip模块 2. server_rewrite 一般只有 rewrite模块 3. find_config 无模块, nginx的框架会去处理, 做location的匹配 4. rewrite 一般只有 rewrite模块 5. post_rewrite 无模块, 在 r...
static模块: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 6...
satisfy 指令: satisfy all | any; 默认: all all: access模块、auth_basic模块、auth_request模块 这三个模块必须全部放行,否则会返回4xx或5xx any: 只要其中有一个访问放行就可以正常访问 可以出现在: http、server、location 决定模块的执行顺序 access模块 auth_bas...