# HG changeset patch # User Igor Sysoev # Date 1214841088 0 # Node ID 9acbc5e7bcbd7401566eba5aecd08bfe6970b4d8 # Parent 479440385e35d7072594bd297b5d9cc797d283bd fix variable access_log merging diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c --- 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 * return NGX_CONF_OK; } - *conf = *prev; + conf->logs = prev->logs; + conf->off = prev->off; if (conf->logs || conf->off) { return NGX_CONF_OK;