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

返回结构体地址

相关推荐
難釋懷9 小时前
Nginx虚拟主机
git·nginx·github
前端 贾公子10 小时前
基于 Nginx 实现一个灰度上线系统
运维·nginx
鱼听禅13 小时前
CentOS使用Nginx配置代理Gitea后网址设置正确,确保URL不匹配的问题记录
nginx·centos·gitea
Jinkxs14 小时前
LoadBalancer- 简单限流策略:Nginx 基于连接 / 请求的限流实现
java·运维·nginx
imuliuliang15 小时前
Laravel5.x核心特性全解析
android·运维·数据库·nginx
Re_Virtual1 天前
centos 7环境下构建nginx 1.30
nginx·centos·rpmbuild
tonydf1 天前
Nginx爆新的RCE漏洞!别担心,平滑升级即可。
后端·nginx
曹牧1 天前
Nginx 504
运维·nginx
rockmelodies2 天前
CentOS Stream 源码编译安装 Nginx 1.31.0(静态依赖版)
运维·chrome·nginx
成为你的宁宁2 天前
【Prometheus监控Nginx/Mysql/Redis/Docker/Rabbitmq】
mysql·nginx·prometheus