技术栈

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
相关推荐
r***9982
2 小时前
使用 Certbot 为 Nginx 自动配置 SSL 证书
运维·nginx·ssl
z***5656
6 小时前
Nginx(搭建高可用集群)
运维·nginx·firefox
i***4861
13 小时前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http
o***7417
13 小时前
【Nginx 】Nginx 部署前端 vue 项目
前端·vue.js·nginx
z***3962
14 小时前
Nginx中如何配置WebSocket代理?
运维·websocket·nginx
忆林520
14 小时前
请求服务任何资源(静态/动态)都返回主页数据?多nginx针对单域名的多服务配置
运维·nginx
q***464
15 小时前
离线安装 Nginx
运维·数据库·nginx
Roottest1234
18 小时前
nginx+tomcat+mysql操作实验
运维·mysql·nginx
z***y862
20 小时前
后端服务限流配置,Nginx与Spring Cloud Gateway
java·服务器·nginx
e***9857
1 天前
Nginx搭建负载均衡
运维·nginx·负载均衡
热门推荐
01GitHub 镜像站点02今天 Cloudflare 全球事故,连 GPT 和你的网站都一起“掉线”了03UV安装并设置国内源04安娜的档案(Anna’s Archive) 镜像网站/国内最新可访问入口(持续更新)05Linux下V2Ray安装配置指南06BongoCat - 跨平台键盘猫动画工具07全球最强模型Grok4,国内已可免费使用!(附教程)08Valdi:Snapchat 开源的新一代跨平台 UI 框架09Labelme从安装到标注:零基础完整指南10swagger xss漏洞复现