Srebrenko Šehić
December 21, 2009 05:46AM
On Mon, Dec 21, 2009 at 2:58 AM, agentzh <agentzh@gmail.com> wrote:

> Actually, nginx variables can also be used for this purpose ;)
> Especially in the subrequest context. A parent request passes
> information to an nginx variable that a subrequest's handler can
> recognize. This will work because according to the current
> implementation of ngx_http_subrequest, the subrequest will inherit the
> parent request's r->variables ;) Mudding with another module's context
> might be a bad idea when that module is not yours :)

I tried that by using r->variable("mykey", "myvalue") from a Perl
handler, but the variable was unavailable in another module. It turns
out that ngx_perl_module stashes this variable under it's own ctx()
which is not directly available in another module. Unless you try
poking around r->ctx array and go look for it.

I'm really missing a way to identify other modules. It would be really
nice if modules had an id (in Apache, that is the filename) that could
be looked up by other modules.

Any tips on how to identify other modules?

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

Re: Communicating between nginx' modules

agentzh 1434 December 19, 2009 06:20AM

Re: Communicating between nginx' modules

agentzh 1357 December 20, 2009 09:00PM

Re: Communicating between nginx' modules

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

Re: Communicating between nginx' modules

Piotr Sikora 1446 December 21, 2009 06:26AM

Re: Communicating between nginx' modules

Marcus Clyne 1337 December 21, 2009 06:38AM

Re: Communicating between nginx' modules

Piotr Sikora 1309 December 21, 2009 06:48AM

Re: Communicating between nginx' modules

Marcus Clyne 1411 December 21, 2009 07:02AM

Re: Communicating between nginx' modules

agentzh 2103 December 21, 2009 08:40PM

Re: Communicating between nginx' modules

Igor Sysoev 1339 December 19, 2009 06:34AM

Re: Communicating between nginx' modules

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



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

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready