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

返回结构体地址

相关推荐
ITKEY_6 分钟前
macOS brew 安装的nginx 文件在哪里?
运维·nginx·macos
Felix-lxd32 分钟前
Ubuntu 22.04 配置 Nginx
linux·nginx·ubuntu
孫治AllenSun2 小时前
【Nginx】配置参数和使用案例
运维·nginx
brave_zhao5 小时前
nginx的进程架构
java·学习·nginx
jieyucx6 小时前
Shell实战:无限循环监控Nginx服务,异常自动重启+双份日志留存
linux·运维·nginx·自动化·shell
zhz521412 小时前
Nginx + OpenSSL 自签名证书配置:优劣总结
运维·nginx
EnCi Zheng12 小时前
N3A-一个端口只能给一个程序使用吗?[特殊字符]
网络·nginx·docker
weixin_5450193214 小时前
Nginx 配置SSL实现HTTPS访问
nginx·https·ssl
章老师说3 天前
NGINX官方谈Lua风险:这其实是两条网关技术路线之争
运维·nginx·负载均衡·lua·openresty
xixingzhe23 天前
SpringBoot + Nginx 免鉴权接口安全防护方案
运维·nginx·安全