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

返回结构体地址

相关推荐
痕迹运维8 小时前
Nginx SFTP代理
nginx
BreezeJiang9 小时前
为什么生成了 dist,项目还是可能跑不起来?从一个 React + Express + MySQL 项目看部署闭环
nginx·react.js
Darling噜啦啦9 小时前
前端到上线全流程:从买服务器到 Nginx 反向代理,搞懂全栈部署
nginx·全栈
烬羽10 小时前
我把"时间胶囊"部署上腾讯云宝塔,跨域从根源消失了
nginx·node.js·全栈
En^_^Joy1 天前
Nginx 从入门到精通:配置、原理与实战详解
运维·nginx
2601_962128262 天前
Nginx目录结构
运维·nginx
2601_962122972 天前
nginx 部署前端vue项目
前端·vue.js·nginx
2601_962128262 天前
Nginx知识详解(理论+实战更易懂)
运维·nginx
2601_962203512 天前
Nginx 安装配置
运维·nginx
牧码岛3 天前
阿里云服务器新端口上线SOP(Windows+Nginx+HTTPS)
服务器·nginx·阿里云