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

返回结构体地址

相关推荐
钱栈up2 小时前
现场部署6个服务菜单全挂:根因不在后端,在前端那个环境变量
mysql·nginx
Csvn10 小时前
Nginx 故障案例库:16 张卡的现象、证据、根因与防复发
后端·nginx
梅雅达编程笔记1 天前
开发机能跑,服务器上跑不起来:MYD 考试系统配置设计与上线清单
mysql·nginx·flask·gunicorn·毕设项目·部署上线
op_qo2 天前
写了几年 OpenResty Lua 网关脚本,聊聊绕不开的 5 个痛点与一种新解法
nginx
Johny_Zhao2 天前
Keepalived与Nginx架构选型
linux·nginx·信息安全·云计算·apache·shell·yum源·keepalive·系统运维
Csvn3 天前
Nginx 可观测性与工程化:指标、告警与发布回滚演练
后端·nginx
Csvn4 天前
Nginx 高可用网关:VIP 切换、proxy_protocol 与 SNI 分流实战
后端·nginx
wno7044 天前
Nginx代理MySQL或PG连接
运维·mysql·nginx
Csvn4 天前
Nginx 性能调优与压测:连接账本、找拐点与调优前后对比
后端·nginx
Csvn6 天前
Nginx 与 OpenResty:阶段钩子、shared dict 与动态 upstream/证书
后端·nginx