diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-04-26 15:21:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-04-26 15:21:08 +0000 |
commit | b051817366173cdec403275c81fafc48e26e24d0 (patch) | |
tree | e8af9cb65d429b6729dfd1f2d383a047979c4dd1 /src/http/ngx_http_core_module.c | |
parent | f8987f00a87e6bd256d070cb24db1f7f986cbb81 (diff) | |
download | nginx-b051817366173cdec403275c81fafc48e26e24d0.tar.gz nginx-b051817366173cdec403275c81fafc48e26e24d0.zip |
nginx-0.3.43-RELEASE importrelease-0.3.43
*) Bugfix: in the SSI.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 487fd2684..6279f3465 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -738,9 +738,11 @@ ngx_http_update_location_config(ngx_http_request_t *r) clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); } - r->connection->log->file = clcf->err_log->file; - if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { - r->connection->log->log_level = clcf->err_log->log_level; + if (r == r->main) { + r->connection->log->file = clcf->err_log->file; + if (!(r->connection->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { + r->connection->log->log_level = clcf->err_log->log_level; + } } if ((ngx_io.flags & NGX_IO_SENDFILE) && clcf->sendfile) { |