Welcome! Log In Create A New Profile


NGINX Module - create variables‏

Alex Koch
December 03, 2013 12:58PM

I would like to create a small module which execute some routines, returns an NGX_OK, somewhat similar in concept to http://blog.zhuzhaoyuan.com/2009/08/creating-a-hello-world-nginx-module/

I would like once the module executes to create variables such as
$my_var which would be accessible via config files to other blocks or to
the same location block.

I am aware of the "register_variable"
option, with "ngx_http_variable_t *var, *v;" - but the examples I have
seen so far, execute the module only once this variable is loaded in the
config file.

What I would like is being able to define a couple
of config variables once my module is loaded. Is this possible at all?
If so, could you point me to a sample/module which does this so I can
learn from it?

Many thanks,

Alex _______________________________________________
nginx mailing list
Subject Author Posted

NGINX Module - create variables‏

Alex Koch December 03, 2013 12:58PM

RE: NGINX Module - create variables‏

Alex Koch December 05, 2013 06:28PM

Re: NGINX Module - create variables?

Maxim Dounin December 05, 2013 07:14PM

RE: NGINX Module - create variables?

Alex Koch December 08, 2013 02:06PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 269
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready