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

返回结构体地址

相关推荐
Avan_菜菜21 小时前
FRP 内网穿透完整实战:从 HTTP 映射到 HTTPS 自签代理
运维·nginx·https
ping某5 天前
为什么 Nginx 明明监听了 80,转发后端时却用了 4xxxx 端口?
后端·nginx
難釋懷7 天前
Nginx反向代理中的容错机制
运维·nginx
bloglin999997 天前
Nginx高危漏洞CVE-2021-23017及配置样例
运维·nginx
进阶的小名7 天前
Spring Boot SSE + Nginx 配置:解决 EventSource 不实时返回、连接超时、流式响应被缓冲问题
spring boot·后端·nginx
難釋懷7 天前
Nginx获取客户端真实IP
服务器·前端·nginx
qq_谁赞成_谁反对7 天前
甲方IT的成长之路--nginx实战--2604
服务器·数据库·nginx
图灵追慕者7 天前
Nginx安裝以及配置顯示本地服務器文件夾
运维·nginx
rabbit_pro7 天前
Nginx配置维护模式
运维·nginx
楠目8 天前
Nginx 解析漏洞利用总结
nginx·网络安全