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

返回结构体地址

相关推荐
2***s6729 小时前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
Erwin Rommel55911 小时前
nginx的https服务搭建实验
服务器·nginx·https
q***017714 小时前
Nginx如何实现 TCP和UDP代理?
tcp/ip·nginx·udp
可爱又迷人的反派角色“yang”16 小时前
Mysql数据库(二)
运维·服务器·前端·数据库·mysql·nginx·云计算
小玉不愚鸭16 小时前
nginx中的https的搭建
运维·nginx·https
羊村积极分子懒羊羊17 小时前
nginx的https的搭建
运维·nginx·https
m***567220 小时前
在Nginx上配置并开启WebDAV服务的完整指南
java·运维·nginx
为什么要内卷,摆烂不香吗20 小时前
Linux 宝塔面板快速简单创建自己的网站
运维·服务器·nginx·阿里云
NF禾凡21 小时前
练习nginx 的https的搭建
运维·nginx
naodianbozzz21 小时前
nginx的https的搭建
运维·nginx·https