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

返回结构体地址

相关推荐
alden_ygq3 小时前
nginx 出现大量connect reset by peer
服务器·网络·nginx
大大小小聪明3 小时前
Nginx核心功能及同类产品对比
运维·nginx
*郑*5 小时前
nginx配置反向代理支持CORS跨域请求
运维·nginx
*郑*15 小时前
nginx配置反向代理后端
运维·nginx
霍志杰18 小时前
网址为 http://xxx:xxxx/的网页可能暂时无法连接,或者它已永久性地移动到了新网址
nginx
hnlucky19 小时前
《基于 Kubernetes 的 WordPress 高可用部署实践:从 MariaDB 到 Nginx 反向代理》
运维·数据库·nginx·云原生·容器·kubernetes·mariadb
铁锚21 小时前
一个WordPress连续登录失败的问题排查
java·linux·服务器·nginx·tomcat
猴子请来的逗比4891 天前
tomcat与nginx之间实现多级代理
java·nginx·tomcat
matrixlzp1 天前
Nginx 源码安装成服务
nginx·云原生
π大星星️2 天前
HAProxy + Keepalived + Nginx 高可用负载均衡系统
运维·nginx·负载均衡