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

返回结构体地址

相关推荐
五阿哥永琪7 小时前
Nginx入门教学+实战
运维·nginx
热爱Liunx的丘丘人11 小时前
Docker Compose 实现 Nginx 与 MySQL 多容器服务编排
mysql·nginx·docker
tang74516396213 小时前
Ubuntu 24.04 安装 Nginx 1.29.6 完整版教程20260320
linux·nginx·ubuntu
小糖学代码13 小时前
LLM系列:环境搭建:4.Nginx使用教程
运维·python·神经网络·nginx
sg_knight13 小时前
负载均衡配置:使用 Nginx 反向代理 MinIO 集群的实战教程
运维·nginx·负载均衡·文件管理·minio·cos·oss
ruanyongjing13 小时前
元数据驱动开发 - 面向对象编程思想的补充 (十二)
nginx·macos·docker
热爱Liunx的丘丘人14 小时前
Dockerfile 构建自定义 Nginx Web 服务镜像
运维·前端·nginx
随便做点啥14 小时前
8卡服务器(4服务x 2卡)Nginx 负载均衡配置,与百分位延迟说明
服务器·nginx·负载均衡
呆萌的代Ma14 小时前
Linux服务使用Nginx配置域名并使用certbot提供SSL
linux·nginx·ssl
热爱Liunx的丘丘人15 小时前
搭建一个 Web + 数据库系统(Nginx+PHP+MySQL)
数据库·nginx·php