aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-04-26 15:21:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-04-26 15:21:08 +0000
commitb051817366173cdec403275c81fafc48e26e24d0 (patch)
treee8af9cb65d429b6729dfd1f2d383a047979c4dd1 /src/http/ngx_http_core_module.c
parentf8987f00a87e6bd256d070cb24db1f7f986cbb81 (diff)
downloadnginx-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.c8
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) {