在 src\http\modules\ngx_http_gzip_static_module.c
C
static void *
ngx_http_gzip_static_create_conf(ngx_conf_t *cf)
{
ngx_http_gzip_static_conf_t *conf;
conf = ngx_palloc(cf->pool, sizeof(ngx_http_gzip_static_conf_t));
if (conf == NULL) {
return NULL;
}
conf->enable = NGX_CONF_UNSET_UINT;
return conf;
}
分配内存,作为一个 ngx_http_gzip_static_conf_t 结构体
返回结构体地址