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

返回结构体地址

相关推荐
FenceRain16 小时前
Nginx 升级,平滑升级不停服务
服务器·网络·nginx
武器大师7218 小时前
实战踩坑:Gerrit HTTP 克隆失败解决方案
运维·nginx·gerrit
Plastic garden21 小时前
Docker Compose 的 RuoYi nginx exporter Prometheus + Alertmanager + 钉钉告警
nginx·docker·prometheus
一个儒雅随和的男子1 天前
Nginx底层原理介绍
运维·nginx
小悟空1 天前
[AI 生成] Nginx 502 Bad Gateway 排查手册(Python 后端篇)
python·nginx·gateway
Anthony_2311 天前
Linux 从基础操作到故障排查
linux·运维·服务器·网络·nginx·ubuntu·centos
唐装鼠2 天前
Nginx + Gunicorn + Python Web 应用 架构(Claude)
python·nginx·gunicorn
難釋懷2 天前
Nginx扩容
运维·nginx
章老师说2 天前
B站网关事故背后:OpenResty 与 Lua 的稳定性代价
nginx·云原生·负载均衡·lua·openresty
難釋懷3 天前
Nginx-CA 签名
服务器·nginx·ssl