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

返回结构体地址

相关推荐
学者猫头鹰43 分钟前
Nginx零基础学习手册
nginx
難釋懷1 天前
Nginx外置缓存-nginx + memcached
nginx·缓存·memcached
難釋懷1 天前
Nginx外置缓存-nginx + redis
redis·nginx·缓存
☆凡尘清心☆2 天前
CentOS Stream 9 专用 LNMP 全自动一键脚本
linux·运维·mysql·nginx·lnmp·centos stream 9
似的8352 天前
一步一步学习使用FireMonkey动画() 使用TAnimator类创建动画
linux·学习·nginx
Zacks_xdc3 天前
【运维】Nginx 蓝绿部署与流式任务(SSE)不中断架构实战
运维·nginx·架构·nextjs
闪亮的路灯4 天前
威联通QTS使用自带web服务期代理前端(类似nginx)
前端·nginx·威联通
難釋懷4 天前
Nginx外置缓存-error_page
运维·nginx·缓存
怪味趣多4 天前
r创建动画。 . 使用TFloatAnimation通过改变图片的位置创建动车。 . 使用TPathAnimation创建路径动画。 ...
运维·nginx
七七powerful5 天前
为离线的bcliunx euler&龙晰 配置 yum源 nginx代理
nginx·yum·bclinux