Hello.
I've created my own directive in module:
[code]
...
{ ngx_string("image_filter_image_id"),
NGX_HTTP_LOC_CONF | NGX_CONF_TAKE1,
ngx_conf_set_str_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_image_filter_conf_t, image_id),
NULL },
...
[/code]
I call it in configuration file this way:
[code]
set $id 0;
image_filter_image_id $id;
[/code]
I write [i]image_id[/i] to the log file inside the module.
Log file looks like this:
[code]
image_id = $id
[/code]
Why the variable doesn't substitute?
PS.
2Admin: Sorry for posting same topic in both russian and english forums.