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ć 4538 December 19, 2009 04:28AM

Re: Communicating between nginx' modules

agentzh 1538 December 19, 2009 06:20AM

Re: Communicating between nginx' modules

agentzh 1435 December 20, 2009 09:00PM

Re: Communicating between nginx' modules

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

Re: Communicating between nginx' modules

Piotr Sikora 1537 December 21, 2009 06:26AM

Re: Communicating between nginx' modules

Marcus Clyne 1409 December 21, 2009 06:38AM

Re: Communicating between nginx' modules

Piotr Sikora 1384 December 21, 2009 06:48AM

Re: Communicating between nginx' modules

Marcus Clyne 1495 December 21, 2009 07:02AM

Re: Communicating between nginx' modules

agentzh 2215 December 21, 2009 08:40PM

Re: Communicating between nginx' modules

Igor Sysoev 1415 December 19, 2009 06:34AM

Re: Communicating between nginx' modules

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



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

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready