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

返回结构体地址

相关推荐
xixingzhe29 小时前
nginx无网络升级
服务器·nginx
你住过的屋檐1 天前
【Nginx】linux上安装nginx
linux·运维·nginx
liangshanbo12151 天前
Nginx 进程管理命令深度面试题解析
java·nginx·面试
weixin_511255211 天前
NGINX常用配置
linux·服务器·nginx
痕迹运维2 天前
Nginx Docker容器化安装
nginx
烬羽2 天前
Dockerfile 是"做奶茶的配方"?用 todos 全栈项目看懂 Docker 构建与发布
nginx·docker·nestjs
meilindehuzi_a2 天前
从浏览器输入 URL 到页面显示:DNS、Nginx、后端与 CDN 全链路解析
运维·nginx
NGINX开源社区2 天前
使用 F5 NGINX Gateway Fabric 实现 AI 交付标准化
nginx·gateway·fabric
翔云1234563 天前
在nginx中,proxy_next_upstream off是什么含义
nginx
虎王物联3 天前
Nginx反向代理实现IoT设备HTTPS接入:从证书配置到MQTT over WebSocket实战
运维·物联网·nginx·https