Welcome! Log In Create A New Profile

Advanced

Unsubstituted variable in config file

Posted by hdg700 
Unsubstituted variable in config file
December 14, 2010 11:52PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready