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

返回结构体地址

相关推荐
SatanII11 小时前
403 禁地:Nginx 拒绝所有生者进入
运维·nginx
xianyuCcCcCCCcc13 小时前
Nginx 深度解析:从基础架构到反向代理与负载均衡实战全解
linux·运维·nginx·bash·负载均衡
冠希陈、15 小时前
Nginx部署SSL,导致多站点串站问题
运维·nginx·ssl
AAA@峥16 小时前
K8s 流量入口管理|Ingress 核心原理 + ingress-nginx 部署 + 生产实战案例合集
nginx·容器·kubernetes
CDN3601 天前
俄语区跨境站点优化实战:CDN+Nginx 解决 H5 白屏、交互延迟、链路卡顿问题
运维·nginx·交互·h5 加速·nginx 轻交互调优
難釋懷1 天前
Nginx重试机制
运维·nginx
国际云,接待2 天前
Nginx 后面接负载均衡,502/504 到底该先查哪里?
运维·nginx·负载均衡
EntyIU2 天前
从IP直连到域名配置:一次Nginx代理问题引发的DNS学习笔记
学习·tcp/ip·nginx
二宝哥2 天前
CentOS 7.9 离线安装 Nginx 并配置openssl1.1.1
linux·nginx·centos
March.s2 天前
Nginx 服务器反向代理实战指南
服务器·nginx·github