Welcome! Log In Create A New Profile

Advanced

Re: Passing variables to perl modules in nginx.conf:

Alexandr Gomoliako
January 26, 2012 08:34AM
On 1/26/12, Engin Akyol <emakyol@gmail.com> wrote:

> Is it possible to pass variables to embedded perl modules via
> nginx.conf and if so how would that be done?

set $foo "bar";
perl My::super_task "A";

In perl:

sub handler {
my $r = shift;
my $foo = $r->variable('foo');
...
}

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

Passing variables to perl modules in nginx.conf:

Engin Akyol January 26, 2012 04:28AM

Re: Passing variables to perl modules in nginx.conf:

Alexandr Gomoliako January 26, 2012 08:34AM

Re: Passing variables to perl modules in nginx.conf:

Engin Akyol January 26, 2012 03:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
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