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

返回结构体地址

相关推荐
星光不问赶路人1 小时前
Nginx 的 location 路径匹配语法详解
nginx·api
GDAL2 小时前
深入理解 NJS 全局对象:掌控运行时的核心工具
nginx·njs
GDAL3 小时前
精通 NJS HTTP 请求对象:全方位掌控 NGINX 请求生命周期
nginx·njs
飞翔沫沫情4 小时前
Nginx运维维护规范及全配置详解【持续更新】
nginx·nginx 配置·nginx 操作手册·nginx 使用规范·nginx 日志规范·nginx 配置文件说明
deriva4 小时前
nginx如何将某域名/二级站点/代理到二级站点?以ChirpStack实战为例
运维·nginx
睡不醒的猪儿15 小时前
nginx常见的优化配置
运维·nginx
root666/1 天前
【后端开发-nginx】proxy_pass和proxy_redirect参数作用
运维·nginx
工具罗某人1 天前
docker快速部署kafka
java·nginx·docker
864记忆2 天前
Qt创建连接注意事项
数据库·qt·nginx
Anarkh_Lee2 天前
别再手写 conf 了!NgxFlow:基于 React Flow 的 Nginx 可视化与调试神器
前端·nginx·数据可视化