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

返回结构体地址

相关推荐
Dontla5 分钟前
Vite代理 vs Nginx代理(开发环境用Vite,生产环境用Nginx)
运维·nginx
No Silver Bullet1 小时前
Nginx 内存不足对Web 应用的影响分析
运维·前端·nginx
Access开发易登软件1 小时前
Access 窗体中实现数字滚动动画:Timer + Easing 的技术实现
运维·数据库·nginx·microsoft·access
凌寒112 小时前
minio预签名访问地址经过Nginx代理后返回403问题
服务器·网络·nginx
陶甜也9 小时前
Vue.js 多项目同端口部署实战:上下文路径配置指南
前端·javascript·vue.js·nginx
王锋(oxwangfeng)9 小时前
Nginx 四层 TCP 与七层 HTTP 转发实战指南
tcp/ip·nginx·http
曹牧10 小时前
Nginx:POST
运维·nginx
市安11 小时前
NFS 共享存储支撑下的 HAProxy+Nginx 集群性能验证实验
运维·nginx·haproxy·nfs
XRJ040618xrj11 小时前
Nginx源码编译
运维·nginx
七夜zippoe13 小时前
负载均衡与反向代理实战:从Nginx配置到高可用架构设计
运维·python·nginx·负载均衡·核心原理