RE: NGINX Module - create variables
Alex Koch
alex.koch007 at outlook.com
Thu Dec 5 23:25:48 UTC 2013
Hello,
I would appreciate any hints.
Many thanks,
Alex
From: alex.koch007 at outlook.com
To: nginx at nginx.org
Subject: NGINX Module - create variables
Date: Tue, 3 Dec 2013 18:55:52 +0100
Hi,
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/
However
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
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20131206/701765fb/attachment.html>
More information about the nginx
mailing list