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

返回结构体地址

相关推荐
ElevenS_it1881 天前
Nginx日志监控告警实战:access_log解析+5xx突增+慢请求+异常IP自动告警完整方案(Filebeat+Zabbix)
运维·网络·tcp/ip·nginx·zabbix
半夜燃烧的香烟1 天前
docker 安装minio nginx,配置nginx根据文根路由minio展示图片
java·nginx·docker
火山上的企鹅1 天前
Codex实战:APP远程升级服务搭建(二)阿里云ECS部署Node升级服务_Ubuntu_systemd_Nginx
nginx·ubuntu·阿里云·qgc
難釋懷1 天前
Nginx-UpStream工作流程
运维·nginx
難釋懷2 天前
Nginx-AB安装
运维·nginx
回忆2012初秋2 天前
【Nginx】原理、配置与运维实战(2)
运维·nginx·策略模式
阿豪啊2 天前
记一次 Nginx 跨域配置踩坑与优化:从嵌套 If 报错到 Map 指令最佳实践
nginx
成为你的宁宁2 天前
【Prometheus Operator监控K8S Nginx】
nginx·kubernetes·prometheus
abcy0712132 天前
centos7 nginx代理kafka集群
nginx
難釋懷2 天前
Nginx对上游服务器使用keepalive
服务器·nginx·github