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

返回结构体地址

相关推荐
东荷新绿2 小时前
【运维开发】acme.sh 安装|签发泛域名SSL证书,宝塔Nginx部署+自动续期
nginx·腾讯云·运维开发·ssl·宝塔·acme.sh
是良辰1 天前
Docker Nginx HTTPS 自签证书部署完整操作文档
nginx·docker·https
難釋懷1 天前
Nginx外置缓存-redis2-nginx-module
nginx·缓存·junit
凡尘——雨落凡尘2 天前
PHP 线上十大隐形故障复盘:90% 的网站卡顿、502、雪崩,都是这些细节导致的
redis·nginx·php·session
Deryck_德瑞克2 天前
【Nginx】配置差异分析
服务器·前端·nginx
学者猫头鹰2 天前
Nginx零基础学习手册
nginx
難釋懷3 天前
Nginx外置缓存-nginx + memcached
nginx·缓存·memcached
難釋懷3 天前
Nginx外置缓存-nginx + redis
redis·nginx·缓存
☆凡尘清心☆4 天前
CentOS Stream 9 专用 LNMP 全自动一键脚本
linux·运维·mysql·nginx·lnmp·centos stream 9
似的8355 天前
一步一步学习使用FireMonkey动画() 使用TAnimator类创建动画
linux·学习·nginx