定义在 src\http\ngx_http_script.h
typedef struct {ngx_conf_t *cf;ngx_str_t *source;ngx_array_t **flushes;ngx_array_t **lengths;ngx_array_t **values;ngx_uint_t variables;ngx_uint_t ncaptures;ngx_uint_t captures_mask;ngx_uint_t size;void *main;unsigned compile_args:1;unsigned complete_lengths:1;unsigned complete_values:1;unsigned zero:1;unsigned conf_prefix:1;unsigned root_prefix:1;unsigned dup_capture:1;unsigned args:1;
} ngx_http_script_compile_t;
ngx_http_script_compile_t
是 Nginx 中用于配置动态字符串编译过程 的核心结构体,主要用于将包含变量的配置字符串(如root /var/www/$host
)转换为运行时可执行的脚本