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

返回结构体地址

相关推荐
C_心欲无痕15 小时前
nginx - alias 和 root 的区别详解
运维·前端·nginx
徐同保16 小时前
nginx转发,指向一个可以正常访问的网站
linux·服务器·nginx
C_心欲无痕20 小时前
nginx - 开启 gzip 压缩
运维·前端·nginx
C_心欲无痕1 天前
nginx - 核心概念
运维·前端·nginx
洋葱 ☠1 天前
极简部署linux免费ssl证书Let‘s Encrypt,自动续签,nginx/apache都可以,域名指向服务器即可,无需项目
linux·nginx·ssl
shenghuiping20011 天前
OPSWAT https enable 问题解决
nginx·https·ssl·443·opswat
oMcLin1 天前
如何在Ubuntu 22.04上通过调优Nginx和PHP‑FPM,提升高并发WordPress网站的负载均衡与缓存性能?
nginx·ubuntu·php
五仁火烧2 天前
Vue3 项目的默认端口行为
服务器·vue.js·nginx·容器·vue
oMcLin2 天前
如何在 RHEL 7 上优化 Nginx 与 PHP‑FPM 配置,确保高并发 Web 应用的稳定性与响应速度?
前端·nginx·php
鲨莎分不晴2 天前
Nginx 部署前端项目实战指南
运维·前端·nginx