]> git.kaiwu.me - nginx.git/commitdiff
fix variable access_log merging
authorIgor Sysoev <igor@sysoev.ru>
Mon, 30 Jun 2008 15:51:28 +0000 (15:51 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 30 Jun 2008 15:51:28 +0000 (15:51 +0000)
src/http/modules/ngx_http_log_module.c

index f4eefdeafaff0868ed657dc9e20f759a83cb2239..f0fd565886b10b3f381eb7cce896d64839c204bf 100644 (file)
@@ -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;