Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 114:ac69ab96328d
nginx-0.0.1-2003-07-07-10:11:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Jul 2003 06:11:50 +0000 |
parents | d7f606e25b99 |
children | be27f922b9a2 |
line wrap: on
line diff
--- 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_co 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_con 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; +}