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

返回结构体地址

相关推荐
pixcarp3 分钟前
Nginx实战部署与踩坑总结 附带详细配置教程
服务器·前端·后端·nginx·golang
Slow菜鸟3 小时前
Java 开发环境安装指南(7) | Nginx 安装
java·开发语言·nginx
陈皮糖..14 小时前
27 届运维实习笔记|第三、四周:从流程熟练到故障排查,企业运维实战深化
运维·笔记·sql·nginx·ci/cd·云计算·jenkins
空中海20 小时前
Nginx 知识体系 · 下篇:高级与实战
运维·nginx·spring
身如柳絮随风扬1 天前
Nginx 入门教程:从安装到配置反向代理与负载均衡
运维·nginx·负载均衡
IntMainJhy1 天前
Flutter flutter_animate 第三方库 动画的鸿蒙化适配与实战指南
nginx·flutter·harmonyos
mfxcyh2 天前
使用MobaXterm配置nginx
java·服务器·nginx
阿里巴巴首席技术官2 天前
通过纯Nginx实现一个简单的文件上传功能
运维·nginx
就叫飞六吧2 天前
Docker Hub 上主流的nginx发行
java·nginx·docker
RePeaT2 天前
【Nginx】前端项目部署与反向代理实战指南
前端·nginx