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

返回结构体地址

相关推荐
PanZonghui几秒前
Centos项目部署之Nginx部署项目
linux·nginx
Hellc0071 小时前
Nginx 高级 CC 与 DDoS 防御策略指南
运维·nginx·ddos
小皮侠3 小时前
nginx的使用
java·运维·服务器·前端·git·nginx·github
梁bk9 小时前
[Nginx]反向代理和负载均衡
运维·nginx·负载均衡
绝不偷吃17 小时前
FastDFS分布式储存
linux·nginx
java1234_小锋19 小时前
解释一下NGINX的反向代理和正向代理的区别?
运维·nginx
PanZonghui1 天前
Centos项目部署之Nginx 的安装与卸载
linux·nginx
charlee442 天前
nginx部署发布Vite项目
nginx·性能优化·https·部署·vite
CRMEB定制开发2 天前
【实战】CRMEB Pro 企业版安装教程(附 Nginx 反向代理配置 + 常见问题解决)
nginx·商城系统·微信商城·crmeb
孙克旭_2 天前
day045-nginx跳转功能补充与https
linux·运维·nginx·https