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

返回结构体地址

相关推荐
回忆2012初秋9 小时前
【Nginx】原理、配置与运维实战(2)
运维·nginx·策略模式
阿豪啊13 小时前
记一次 Nginx 跨域配置踩坑与优化:从嵌套 If 报错到 Map 指令最佳实践
nginx
成为你的宁宁21 小时前
【Prometheus Operator监控K8S Nginx】
nginx·kubernetes·prometheus
abcy0712131 天前
centos7 nginx代理kafka集群
nginx
難釋懷1 天前
Nginx对上游服务器使用keepalive
服务器·nginx·github
2401_834636991 天前
Nginx 从入门到实战:静态 / 动态站点、PHP 部署与反向代理全解析
运维·nginx·php
回忆2012初秋1 天前
【Nginx】优雅地走进高性能 Web 服务器世界(1)
服务器·前端·nginx
難釋懷2 天前
Nginx-KeepAlive
运维·nginx
2401_834636992 天前
Keepalived + LVS (DR) + Nginx + NFS 高可用 Web 集群部署实战手册
前端·nginx·lvs
NCU_wander2 天前
LB HA(high avaliablity)和nginx
运维·nginx