diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-07-28 11:05:04 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-07-28 11:05:04 +0800 |
commit | 3f8cf62c03a55b9767f0c75b3df6a1a40252b19a (patch) | |
tree | 38c5c687bb348d888c5fb869d038cc21ea47c5f2 /src/nxt_http_static.c | |
parent | 8761501b4845656a0f2e5c0e7bf98f948c45fb5f (diff) | |
download | unit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.gz unit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.bz2 |
Log: customizable access log format.
Diffstat (limited to 'src/nxt_http_static.c')
-rw-r--r-- | src/nxt_http_static.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c index 19393f2c..0507e038 100644 --- a/src/nxt_http_static.c +++ b/src/nxt_http_static.c @@ -104,7 +104,7 @@ nxt_http_static_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, cv = nxt_conf_get_array_element_or_itself(acf->share, i); nxt_conf_get_string(cv, &str); - var = nxt_var_compile(&str, mp, rtcf->var_fields, 1); + var = nxt_var_compile(&str, mp, rtcf->var_fields, NXT_VAR_STRZ); if (nxt_slow_path(var == NULL)) { return NXT_ERROR; } @@ -130,7 +130,8 @@ nxt_http_static_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, nxt_str_t chr, shr; nxt_bool_t is_const; - conf->chroot = nxt_var_compile(&acf->chroot, mp, rtcf->var_fields, 1); + conf->chroot = nxt_var_compile(&acf->chroot, mp, rtcf->var_fields, + NXT_VAR_STRZ); if (nxt_slow_path(conf->chroot == NULL)) { return NXT_ERROR; } |