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

返回结构体地址

相关推荐
chehaoman10 小时前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
今晚务必早点睡12 小时前
Nginx 从入门到精通:一篇讲透原理、功能、配置与实战场景
运维·nginx·负载均衡
givemeacar13 小时前
Nginx如何实现 TCP和UDP代理?
tcp/ip·nginx·udp
xuefeiniao14 小时前
Docker 部署宝塔面板 Nginx 反向代理 502 踩坑实录
nginx·docker·容器
yaaakaaang15 小时前
(一)前端,如此简单!---下载Nginx
前端·nginx
jessecyj21 小时前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http
skiy21 小时前
Nginx搭建负载均衡
运维·nginx·负载均衡
明天…ling1 天前
Redhat 10 部署Nginx实现多IP/多端口/HTTPS访问(避坑实操+问题全解决)
tcp/ip·nginx·https
sunwenjian8861 天前
Nginx 的 proxy_pass 使用简介
运维·nginx
xiaohe071 天前
nginx 代理 redis
运维·redis·nginx