<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'>Great. Thanks! This was in fact helpful.<br><br>Alex<br><br><div>> Date: Fri, 6 Dec 2013 04:13:53 +0400<br>> From: mdounin@mdounin.ru<br>> To: nginx@nginx.org<br>> Subject: Re: NGINX Module - create variables?<br>> <br>> Hello!<br>> <br>> On Fri, Dec 06, 2013 at 12:25:48AM +0100, Alex Koch wrote:<br>> <br>> [...]<br>> <br>> > What I would like is being able to define a couple <br>> > of config variables once my module is loaded. Is this possible at all? <br>> > If so, could you point me to a sample/module which does this so I can <br>> > learn from it?<br>> <br>> You may try looking into the stub status module, <br>> src/http/modules/ngx_http_stub_status_module.c.  It defines <br>> several variables ($connections_active, $connections_reading, <br>> $connections_writing, $connections_waiting) and it's easy enough <br>> to follow.<br>> <br>> http://hg.nginx.org/nginx/file/tip/src/http/modules/ngx_http_stub_status_module.c<br>> <br>> -- <br>> Maxim Dounin<br>> http://nginx.org/en/donation.html<br>> <br>> _______________________________________________<br>> nginx mailing list<br>> nginx@nginx.org<br>> http://mailman.nginx.org/mailman/listinfo/nginx<br></div>                                           </div></body>
</html>