技术栈

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
相关推荐
锋行天下
12 小时前
让nginx网关扛下所有攻击
前端·后端·nginx
代码熬夜敲Q
14 小时前
Nginx相关
运维·服务器·nginx
念何架构之路
14 小时前
接入层Nginx
运维·nginx
隔窗听雨眠
1 天前
Nginx网关响应慢排查手记
java·服务器·nginx
難釋懷
1 天前
Nginx自签名-图形化工具 XCA
运维·nginx
songjxin
1 天前
Nginx 日志分析可视化面板
运维·nginx
qq_31292011
2 天前
如何将Nginx响应时间从500ms降至50ms
运维·nginx
linmengmeng_1314
2 天前
【总结】Docker 容器重建后 Nginx 502 问题排查与解决
nginx·docker·容器
難釋懷
2 天前
Nginx-Https证书配置
运维·nginx·https
热门推荐
01GitHub 镜像站点02【踩坑记录 | 第一篇】微软商店无法使用时,如何手动安装 OpenAI Codex?附`.msix`文件系统错误解决方法03【AI】2026 年具身智能模型和世界模型总结04DeepSeek V4 + Claude Code thinking mode 400 错误修复方案05Codex 接入 DeepSeek API 完整配置文档06裂开!ChatGPT 居然开始要手机号验证,附详细解决方法07CC-Switch & Claude 基于 Linux 服务器安装使用指南08几个好用的ip纯净度检测网站09CC-Switch 全平台下载、安装与使用全指南(Windows/macOS/Linux)10API Key 登录 Codex 也能用插件了,还支持会话删除和导出