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

返回结构体地址

相关推荐
ideal-cs10 小时前
总结:Nginx配置文件案例说明
java·运维·nginx·nginx配置文件
旭日跑马踏云飞11 小时前
【Nginx】相关优化
运维·javascript·nginx
逸尘散修11 小时前
Nginx 限流实战全指南:从原理到生产级配置详解
nginx
71ber12 小时前
RHCSE 实战笔记:Nginx 和 Tomcat --企业高并发应用的杀手锏
linux·nginx·tomcat
blockrock12 小时前
Nginx再习
运维·nginx
敲代码的哈吉蜂13 小时前
服务端I/O流程、I/O模型、网络I/O模型
linux·服务器·nginx
cyber_两只龙宝14 小时前
Tomcat--企业级web应用服务器详细介绍与整合Nginx配置流程
linux·运维·前端·nginx·云原生·tomcat·负载均衡
我是Superman丶14 小时前
Nginx反向代理流式输出延迟?一招解决SSE/WebSocket缓冲问题SpringBoot+SSE流式输出卡住?Nginx这个配置必须关!
运维·websocket·nginx
敲代码的哈吉蜂15 小时前
Nginx配置文件的管理及优化参数
java·服务器·nginx
cyber_两只龙宝1 天前
Nginx--企业高性能web服务器高级配置详解
linux·运维·nginx·云原生