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

返回结构体地址

相关推荐
Arya_aa16 小时前
检疫登记模块图片上传,nginx自动映射地址
spring boot·nginx
全栈工程师修炼指南17 小时前
Nginx | 磁盘IO层面性能优化秘诀:error 日志内存环形缓冲区及小文件 sendfile 零拷贝技术
运维·网络·nginx·性能优化
ywgcsxue17 小时前
在麒麟V10上源码编译安装Nginx
linux·运维·服务器·nginx
Cyber4K21 小时前
【Nginx专项】基础入门篇-访问限制及访问控制
linux·运维·服务器·nginx
Arya_aa1 天前
通过nginx访问文件资源
nginx
如来神掌十八式2 天前
nginx基础知识
运维·nginx
IT青栀菀2 天前
Tengine替换Nginx作为代理服务遇到的问题
运维·nginx
蜜獾云2 天前
Nginx-包教包会-入门
运维·nginx
青霄2 天前
nginx动态匹配(分流)
nginx·动态转发
舒一笑3 天前
我把前端从 /ais 改到 /kb 后,连续踩了 7 个 Nginx 坑(含 405/413/502/404 终极解法)
运维·nginx·程序员