在 http 配置块中,我们配置了 http 连接相关的信息,HTTP 框架也正是从这里启动的 在 nginx 初始化的过程中,执行了 ngx_init_cycle 函数,其中进行了配置文件解析,调用了 ngx_conf_parse 函数 函数 ngx_conf_handler 根据配置项的 command 调用了对应的 set 回调函数 // static ngx_command_t ngx_http_commands // http 模块命令结构 {{{ static ngx_command…