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

返回结构体地址

相关推荐
siger14 小时前
前端部署缓存策略实践
前端·nginx
曲幽17 小时前
FastAPI子应用挂载:别再让root_path坑你一夜
python·nginx·fastapi·web·mount·admin·404·docs·root_path
yashuk20 小时前
Ubuntu 系统下安装 Nginx
数据库·nginx·ubuntu
桌面运维家1 天前
Nginx服务器安全:高级访问控制与流量清洗实战
服务器·nginx·安全
yhole1 天前
Nginx解决前端跨域问题
运维·前端·nginx
问道飞鱼1 天前
【服务器知识】nginx安全架构巡检
服务器·nginx·安全架构
斌味代码2 天前
Nginx 配置实战(2026最新版):反向代理+负载均衡+HTTPS+性能优化一网打尽
nginx·https·负载均衡
qzhqbb2 天前
Web 服务器(Nginx、Apache)
服务器·前端·nginx
qzhqbb2 天前
Nginx/Apache 访问规则
运维·nginx·apache
liucan20122 天前
nginx服务器实现上传文件功能_使用nginx-upload-module模块
服务器·前端·nginx