Welcome! Log In Create A New Profile

Advanced

Re: Communicating between nginx' modules

agentzh
December 21, 2009 08:40PM
On Mon, Dec 21, 2009 at 7:24 PM, Piotr Sikora <piotr.sikora@frickle.com> wrote:
>> Any tips on how to identify other modules?
>
> Using ngx_http_copy_filter_module as an example:
>
> First, you need to declare module you want to access:
> "ngx_module_t  ngx_http_copy_filter_module;"
>
> and then you can access it's context using:
> "r->ctx[ngx_http_copy_filter_module.ctx_index]"
>

Or even at runtime by inspecting the global array "ngx_modules" by
looking for familiar config directives ;) Then you'll get the module_t
object you're interested in *at runtime*, as I previously mentioned in
the "optional nginx module dependency" trick ;)

Cheers,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Communicating between nginx' modules

Srebrenko Šehić 3498 December 19, 2009 04:28AM

Re: Communicating between nginx' modules

agentzh 1034 December 19, 2009 06:20AM

Re: Communicating between nginx' modules

agentzh 991 December 20, 2009 09:00PM

Re: Communicating between nginx' modules

Srebrenko Šehić 1013 December 21, 2009 05:46AM

Re: Communicating between nginx' modules

Piotr Sikora 1071 December 21, 2009 06:26AM

Re: Communicating between nginx' modules

Marcus Clyne 971 December 21, 2009 06:38AM

Re: Communicating between nginx' modules

Piotr Sikora 960 December 21, 2009 06:48AM

Re: Communicating between nginx' modules

Marcus Clyne 1056 December 21, 2009 07:02AM

Re: Communicating between nginx' modules

agentzh 1548 December 21, 2009 08:40PM

Re: Communicating between nginx' modules

Igor Sysoev 971 December 19, 2009 06:34AM

Re: Communicating between nginx' modules

Srebrenko Šehić 952 December 19, 2009 07:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 117
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready