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

返回结构体地址

相关推荐
好好风格10 小时前
宝塔面板 HTTPS 端口证书不生效排查记录
linux·运维·nginx
宋冠巡11 小时前
OpenEuler 系统下 Nginx 安装配置与管理指南(基于 OpenEuler 22.03 LTS SP4)
nginx·openeuler
爱吃土豆的马铃薯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ12 小时前
nginx部署教程
运维·网络·nginx
tongluowan00716 小时前
负载均衡之硬件与软件层面的异同
运维·nginx·负载均衡·f5
宋冠巡17 小时前
华为云开发桌面OpenEuler搭建Nginx服务器实操记录
服务器·nginx·华为云
Dxy12393102161 天前
为什么开了 `open_file_cache` 图片会不显示?
nginx
念何架构之路1 天前
接入LVS+Nginx和服务发现
nginx·服务发现·lvs
ThinkPet2 天前
记事-vue3项目部署Jenkins实现CICD流程
运维·nginx·jenkins·jenkinsfile·cicd流水线
零壹AI实验室2 天前
AI发现潜伏18年的NGINX高危漏洞:CVE-2026-42945完整技术分析
运维·人工智能·nginx