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

返回结构体地址

相关推荐
yy55271 小时前
Nginx 性能优化与监控
运维·nginx·性能优化
qq_1728055914 小时前
腾讯云WordPress遭遇Nginx 502问题排查与解决方案
nginx·腾讯云
李长渊哦15 小时前
Nginx 反向代理实战:解决 IPv6 报错与跨网段访问指南
运维·nginx
小二·15 小时前
HTTPS全链路解析:从证书申请到Nginx配置(含国密SM2实战)|网络安全
nginx·web安全·https
洛菡夕1 天前
nginx安全防护与HTTPS部署实战
nginx·安全·https
刘晨鑫11 天前
Nginx性能调优
运维·nginx
**蓝桉**1 天前
prometheus监控nginx
nginx·elasticsearch·prometheus
sszdzq2 天前
docker 安装 Nginx
nginx·docker·容器
我爱学习好爱好爱2 天前
ELK 7.17.10 + Redis 5.0.7 构建高可用 Nginx 日志收集系统(Rocky Linux 9.6 实战)
redis·nginx·elk
kc胡聪聪2 天前
nginx的性能优化与监控
运维·nginx·性能优化