ngx_http_gzip_static_create_conf

在 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 结构体

返回结构体地址

相关推荐
Densen20141 小时前
企业H5站点升级PWA (三)
前端·nginx·c#
tzy23318 小时前
Nginx 的重定向规则
nginx·location·return·302·301·rewrite·last
明月_清风21 小时前
Nginx 模块机制深度解析:从核心原理到生产实践
前端·nginx
明月_清风1 天前
Nginx 生产环境配置完全指南:从安全加固到性能调优
前端·nginx
zzzb1234561 天前
WSL(Ubuntu)部署Nginx\+PHP8\.2完整教程(新手友好\+避坑指南)
linux·nginx·ubuntu·php
加号31 天前
Nginx 实现负载均衡:从原理到实践的完整指南
运维·nginx·负载均衡
scheduleTTe3 天前
Nginx
服务器·前端·nginx
pixcarp3 天前
Nginx实战部署与踩坑总结 附带详细配置教程
服务器·前端·后端·nginx·golang
Slow菜鸟3 天前
Java 开发环境安装指南(7) | Nginx 安装
java·开发语言·nginx
陈皮糖..4 天前
27 届运维实习笔记|第三、四周:从流程熟练到故障排查,企业运维实战深化
运维·笔记·sql·nginx·ci/cd·云计算·jenkins