技术栈

ngx_http_gzip_static_create_conf

若云止水2025-04-21 8:58

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

返回结构体地址

上一篇:栗子前端技术周刊第 77 期 - tsdown、Astro 5.7、Bun v1.2.10...
下一篇:node.js|环境部署|源码编译高版本的node.js
相关推荐
百***6703
4 小时前
Nginx搭建负载均衡
运维·nginx·负载均衡
m0_56953101
10 小时前
Nginx(4)--Nginx与tomcat反向代理和负载均衡
nginx·tomcat·负载均衡
R.lin
13 小时前
浅谈Nginx
运维·nginx
Crazy________
14 小时前
37负载均衡介绍和nginx模块编译安装
运维·nginx·负载均衡
百***3413
16 小时前
Nginx实现接口复制
运维·nginx·junit
天黑请闭眼
18 小时前
华为对象存储:nginx代理临时访问地址后访问报错:Authentication Failed
nginx·华为
执念WRD
1 天前
熊海CMS v1.0代码审计实战
android·nginx·安全·web安全·网络安全·系统安全
q***5189
1 天前
离线安装 Nginx
运维·数据库·nginx
Csxyzj
1 天前
nginx
服务器·nginx
mzlogin
2 天前
解决访问 https 网站时,后端重定向或获取 URL 变成 http 的问题
java·后端·nginx
热门推荐
01GitHub 镜像站点02BongoCat - 跨平台键盘猫动画工具03UV安装并设置国内源04安娜的档案(Anna’s Archive) 镜像网站/国内最新可访问入口(持续更新)05Linux下V2Ray安装配置指南06综合整理:pdf预览显示:你尝试预览的文件可能对你的计算机有害。如果你信任此文件以及其来源,请打开此文件以看其内容,如何解决以正常预览文件07jdk21下载、安装(Windows、Linux、macOS)08使用国内镜像网站在线下载安装Qt(解决官网慢的问题)——Qt09Labelme从安装到标注:零基础完整指南10MiniMax-M2 全方位配置手册:覆盖 Claude Code, Cursor, Cline 等工具