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

返回结构体地址

相关推荐
zhuyasen10 小时前
Go 实战:在 Gin 基础上上构建一个生产级的动态反向代理
nginx·go·gin
a123560mh12 小时前
国产信创操作系统银河麒麟常见软件适配(MongoDB、 Redis、Nginx、Tomcat)
linux·redis·nginx·mongodb·tomcat·kylin
百***355113 小时前
Linux(CentOS)安装 Nginx
linux·nginx·centos
micefind14 小时前
Nginx 反向代理完全指南:从安装到生产环境全流程
nginx
寂寞旅行17 小时前
Nginx配置WSS安全WebSocket代理
websocket·nginx·安全
r***869819 小时前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http
暴躁哥1 天前
linux ubuntu 下安装nginx
linux·nginx·ubuntu
r***99821 天前
使用 Certbot 为 Nginx 自动配置 SSL 证书
运维·nginx·ssl
z***56561 天前
Nginx(搭建高可用集群)
运维·nginx·firefox
i***48612 天前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http