NGINX----源码阅读---数据结构---配置相关

 1 struct ngx_conf_s {
 2     //配置名称
 3     char                 *name;
 4     //配置参数
 5     ngx_array_t          *args;
 6 
 7 
 8     //cycle
 9     ngx_cycle_t          *cycle;
10     //内存池
11     ngx_pool_t           *pool;
12     //临时内存池
13     ngx_pool_t           *temp_pool;
14     //配置文件
15     ngx_conf_file_t      *conf_file;
16     //日志
17     ngx_log_t            *log;
18 
19 
20     //配置上下文
21     void                 *ctx;
22     //模块类型
23     ngx_uint_t            module_type;
24     //指令类型
25     ngx_uint_t            cmd_type;
26 
27     //指令函数
28     ngx_conf_handler_pt   handler;
29     //回调函数配置
30     char                 *handler_conf;
31 };
原文地址:https://www.cnblogs.com/wangtengxiang/p/6481131.html