fix variable access_log merging

This commit is contained in:
Igor Sysoev 2008-06-30 15:51:28 +00:00
parent 504efffca8
commit 0da6d2f675

View 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;