aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-07-07 06:11:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-07-07 06:11:50 +0000
commit9d639520aa95f0ff3882ea348d4347f69cbae493 (patch)
treea163ada230b77745dc9117df4a2a5dce756115cc /src/http/ngx_http_core_module.c
parent340b03b201c77f394cc70fda4d960ad6c3b68905 (diff)
downloadnginx-9d639520aa95f0ff3882ea348d4347f69cbae493.tar.gz
nginx-9d639520aa95f0ff3882ea348d4347f69cbae493.zip
nginx-0.0.1-2003-07-07-10:11:50 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7823eca94..60a9fcfaf 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -867,6 +867,7 @@ static void *ngx_http_core_create_loc_conf(ngx_pool_t *pool)
lcf->types = NULL;
lcf->default_type.len = 0;
lcf->default_type.data = NULL;
+ lcf->err_log = NULL;
*/
@@ -1050,3 +1051,20 @@ static char *ngx_set_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_OK;
}
+
+
+static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
+{
+ ngx_http_core_loc_conf_t *lcf = conf;
+
+ ngx_str_t *value;
+
+ value = cf->args->elts;
+
+ ngx_test_null(lcf->err_log, ngx_log_create_errlog(cf->cycle),
+ NGX_CONF_ERROR);
+
+ lcf->err_log->file->name = value[1];
+
+ return NGX_CONF_OK;
+}