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

返回结构体地址

相关推荐
蔡不菜和他的uU们14 小时前
LAMP迁移LNMP Nginx多站点配置全流程
运维·nginx
一眼万年0414 小时前
Nginx Master-Worker 进程间的共享内存是怎么做到通用还高效的?
后端·nginx·面试
用户697793063425315 小时前
什么?2025年了发版后还要手动清浏览器缓存?
前端·nginx
Jiude16 小时前
如何使用 Certbot 为域名配置永久免费的 HTTPS 证书
后端·nginx·https
Britz_Kevin21 小时前
从零开始的云计算生活——番外3,LVS+KeepAlived+Nginx高可用实现方案
nginx·云计算·生活·lvs·#keepalived
若小羽21 小时前
Nginx实战笔记:Vite代理迁移到Nginx的完整指南
前端·nginx
yourkin6661 天前
为什么要使用nginx?
运维·nginx
狗哥哥2 天前
一文搞定前端中的nginx知识(面经版)
前端·nginx
Wayne_Greet2 天前
Nginx配置负载均衡
服务器·nginx·负载均衡
Insist7533 天前
linux系统------LVS+KeepAlived+Nginx高可用方案
linux·nginx·lvs