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

返回结构体地址

相关推荐
guojb82418 分钟前
告别部署踩坑:用 Docker Compose 优雅搞定多前端站点、HTTPS 与 SSE 推送
nginx·docker·https
NGINX开源社区1 小时前
F5 NGINX Gateway Fabric 2.4.0 新功能发布
nginx
**蓝桉**1 小时前
Nginx 负载均衡策略详解
运维·nginx·负载均衡
亚马逊云开发者1 小时前
证书 47 天就过期?我在 EC2 上用 Certbot 搞定了自动续期
nginx
夜影风1 小时前
Nginx部署Vue/React项目时无法直接访问页面其他路径的问题及解决方案
vue.js·nginx·react.js
小小的木头人2 小时前
Nginx 访问控制及安全配置文档
运维·nginx·安全
七七powerful16 小时前
loki监控docker容器&系统&nginx日志的告警规则
nginx·docker·容器
dovens20 小时前
httpslocalhostindex 配置的nginx,一刷新就报404了
运维·nginx
riNt PTIP1 天前
Ubuntu 系统下安装 Nginx
数据库·nginx·ubuntu
wellc1 天前
Nginx作用以及应用场景
运维·nginx