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 小时前
Ubuntu22.04上安装配置站点
nginx
PC2005-cloud2 小时前
KubeSphere学习笔记:部署nginx
笔记·学习·nginx
后除2 小时前
Debian 安装与使用 Certbot
后端·nginx·https
风雨_835 小时前
轻量级 Nginx 日志分析和可视化平台 NginxPulse安装
运维·nginx
若无情我 纸小铭5 小时前
Nginx学习笔记(二) Nginx--connection&request
笔记·学习·nginx
xixingzhe25 小时前
net::ERR_INCOMPLETE_CHUNKED_ENCODING解决
nginx
轻揉小乔 真新人1 天前
使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
运维·nginx·缓存
月落归舟1 天前
深入浅出:短信验证码登录场景下的 Nginx 负载均衡与 Session 共享
运维·nginx·负载均衡
东荷新绿1 天前
【运维开发】acme.sh 安装|签发泛域名SSL证书,宝塔Nginx部署+自动续期
nginx·腾讯云·运维开发·ssl·宝塔·acme.sh
是良辰2 天前
Docker Nginx HTTPS 自签证书部署完整操作文档
nginx·docker·https