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

返回结构体地址

相关推荐
胡志辉5 小时前
Nginx CVE‑2026‑42945:隐藏18年高危漏洞被曝光(附解决方案)
前端·后端·nginx
风曦Kisaki7 小时前
# Linux运维Day01:Nginx基础
linux·运维·nginx
Only丿阿海8 小时前
当运维与AI结合 — 用 AI Agent 去维护 Nginx
运维·人工智能·nginx·agent·agent4j
养肥胖虎17 小时前
Docker学习笔记:后端、数据库和反向代理怎么一起跑起来
后端·nginx·docker·postgresql·go·部署
树下水月19 小时前
文件分片上传接口(Easyswoole)被nginx拦截,并返回状态码400和408的抓包排查过程
运维·nginx
nashane1 天前
HarmonyOS 6学习:解决无限循环动画被打断后“消失“的诡异问题
运维·nginx·harmonyos 5
taocarts_bidfans1 天前
Taoify与Redis、Nginx集成实战:提升跨境独立站性能与并发能力
数据库·redis·nginx·跨境电商·独立站
bug攻城狮1 天前
Nginx在前后端分离中的作用对比
运维·nginx
手揽回忆怎么睡1 天前
京东云Ubuntu22..04安装jdk21、MySQL8、nginx
运维·nginx·京东云
SPC的存折1 天前
12、Ingress-Nginx 全局超时配置及生效方式
运维·nginx·云原生·kubernetes