NGINX Module - create variables?
Alex Koch
alex.koch007 at outlook.com
Sun Dec 8 19:05:40 UTC 2013
Great. Thanks! This was in fact helpful.
Alex
> Date: Fri, 6 Dec 2013 04:13:53 +0400
> From: mdounin at mdounin.ru
> To: nginx at nginx.org
> Subject: Re: NGINX Module - create variables?
>
> Hello!
>
> On Fri, Dec 06, 2013 at 12:25:48AM +0100, Alex Koch wrote:
>
> [...]
>
> > 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?
>
> You may try looking into the stub status module,
> src/http/modules/ngx_http_stub_status_module.c. It defines
> several variables ($connections_active, $connections_reading,
> $connections_writing, $connections_waiting) and it's easy enough
> to follow.
>
> http://hg.nginx.org/nginx/file/tip/src/http/modules/ngx_http_stub_status_module.c
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html
>
> _______________________________________________
> 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/20131208/d5bcebe5/attachment.html>
More information about the nginx
mailing list