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

返回结构体地址

相关推荐
Csxyzj18 分钟前
Nginx:企业高性能web服务器(一)
运维·服务器·nginx
Linux运维技术栈2 小时前
云平台服务器遭遇黑客攻击?用 Nginx 批量封锁敏感接口,自动返回 444 关闭连接
运维·服务器·nginx·安全·防御
life码农14 小时前
Linux截取Nginx指定时间段日志的三种方法(grep/awk/sed)
linux·nginx
小飞侠在吗19 小时前
Windows 下 Nginx 访问 127.0.0.1 报 50x 错误:根因是路径里 \t 被当成 Tab
运维·windows·nginx
liuyicenysabel1 天前
Flask 个人站 iProfile 上线笔记(k3s + Nginx + Let‘s Encrypt)
笔记·nginx·flask
Jimmy_jimi2 天前
利用nginx代理完成url重定位
运维·nginx
东风破_2 天前
Docker 基础:为什么需要容器?
前端·后端·nginx
东风破_2 天前
Docker 实战:使用 Nginx 作为容器入口代理 Node 服务
前端·后端·nginx
外滩运维专家3 天前
通配符证书到期,阿里云上几个服务的证书怎么一次换完
运维·开发语言·nginx·https·php·消息推送
qq10916069813 天前
nginx+TongWeb 配置非443端口的https
网络·nginx·https