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

返回结构体地址

相关推荐
卢傢蕊3 小时前
Nginx安全防护与HTTPS部署实战
nginx·安全·https
岁岁种桃花儿3 小时前
kubenetes从入门到上天系列第十九篇:Kubernetes安装Nginx ingress controller
java·nginx·kubernetes
kc胡聪聪4 小时前
nginx安全
nginx
高梦轩6 小时前
Nginx 安全防护与 HTTPS 部署实战文档
nginx·安全·https
shuxiaohua6 小时前
一次现网问题定位-nginx报错upstream sent invalid chunked response while reading upstream
运维·nginx
|华|9 小时前
Nginx安全防护与HTTPS部署
nginx·安全
小尔¥9 小时前
Nginx安全
运维·nginx·安全
buhuimaren_9 小时前
LAMP架构部署配置
nginx·php
xiaokangzhe9 小时前
web技术与nginx网站环境部署
运维·前端·nginx
陈皮糖..10 小时前
Docker Compose 学习之多容器应用编排与运维实践 —— 基于 Nginx+MySQL+Redis 服务栈的部署与管理
运维·redis·学习·mysql·nginx·docker