From 0da6d2f67585b405f11f6657a230b75729d1f7aa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 30 Jun 2008 15:51:28 +0000 Subject: [PATCH] fix variable access_log merging --- src/http/modules/ngx_http_log_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index f4eefdeaf..f0fd56588 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -761,7 +761,8 @@ ngx_http_log_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) return NGX_CONF_OK; } - *conf = *prev; + conf->logs = prev->logs; + conf->off = prev->off; if (conf->logs || conf->off) { return NGX_CONF_OK;