技术栈

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
相关推荐
ego.iblacat
1 小时前
Web 技术与 Nginx 网站环境部署
运维·前端·nginx
西门吹雪分身
2 小时前
nginx的负载均衡配置
nginx·github·负载均衡
J超会运
3 小时前
从零部署Nginx:Web全栈实战指南
运维·前端·nginx
zzh081
3 小时前
web技术与nginx网站环境部署
运维·前端·nginx
爱丽_
5 小时前
Nginx 从入门到项目部署(反向代理 / 负载均衡 / 静态资源)
运维·nginx·负载均衡
罗技123
9 小时前
在 Kubernetes 上用 Fluent Bit 收集 Nginx 日志到 Easysearch
nginx·kubernetes·jenkins
闻道且行之
16 小时前
Nginx 安装、做成服务及 HTTPS 配置全流程
linux·运维·nginx·https
人生匆匆
16 小时前
在nginx上为 IP 地址生成 SSL 证书并在windosw签证
tcp/ip·nginx·ssl
Sunny_yiyi
17 小时前
阿里云轻量服务器安装nginx(不期而遇)
服务器·nginx·阿里云
热门推荐
01GitHub 镜像站点02OpenClaw 使用和管理 MCP 完全指南03本地部署 OpenClaw + DeepSeek-R1 完全指南04得物前端部门,没了05OpenClaw 连接飞书完整指南:插件安装、配置与踩坑记录06OpenClaw 飞书机器人不回复消息?3 小时踩坑总结07Window 10部署openclaw报错node.exe : npm error code 12808OpenClaw macOS 完整安装与本地模型配置教程(实战版)09npm-error code 128问题解决方法10OpenClaw 接入 QQ Bot 完整实践指南