diff options
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 26f24b360..3162d39f8 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -4101,7 +4101,11 @@ ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { ngx_http_core_loc_conf_t *lcf = conf; - lcf->err_log = ngx_log_create_errlog(cf->cycle, cf->args); + ngx_str_t *value; + + value = cf->args->elts; + + lcf->err_log = ngx_log_create_errlog(cf->cycle, &value[1]); if (lcf->err_log == NULL) { return NGX_CONF_ERROR; } |
