<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>I would appreciate any hints.<br><br>Many thanks,<br><br>Alex<br><br><div><hr id="stopSpelling">From: alex.koch007@outlook.com<br>To: nginx@nginx.org<br>Subject: NGINX Module - create variablesþ<br>Date: Tue, 3 Dec 2013 18:55:52 +0100<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi,<br><br>I would like to create a small module which execute some routines, returns an NGX_OK, somewhat similar in concept to <a href="http://blog.zhuzhaoyuan.com/2009/08/creating-a-hello-world-nginx-module/" target="_blank">http://blog.zhuzhaoyuan.com/2009/08/creating-a-hello-world-nginx-module/</a><br><br>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.<br><br>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.<br><br>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?<br><br>Many thanks,<br><br>Alex </div>
<br>_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx</div> </div></body>
</html>