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

返回结构体地址

相关推荐
No8g攻城狮9 小时前
【Nginx】Nginx实现动态路由映射
运维·nginx
unirst198500711 小时前
使用vite打包并部署vue项目到nginx
前端·vue.js·nginx
市安12 小时前
基于Debain构建Ngxin镜像
运维·nginx·docker·云原生·容器·debian·镜像
阿正的梦工坊12 小时前
Nginx(发音:engine x)是什么?
运维·nginx
程序员洪志道1 天前
封装复杂性:一个反复生效的架构手法
nginx·程序员
Dear~yxy1 天前
Nginx知识点详解
运维·nginx
cc.ChenLy1 天前
Nginx核心解析:正向代理、反向代理、负载均衡、下载、安装、使用...
运维·nginx·负载均衡
FJW0208141 天前
Nginx + Redis + srcache + PHP-FPM架构部署
redis·nginx·php
codingWhat1 天前
手把手系列之——前端的Nginx 与 Docker 部署实践
nginx·docker
kiramario2 天前
本地环境后端服务nginx反向代理,前端联调CORS设置不生效解决
运维·前端·nginx