Passing variables to perl modules in nginx.conf:

Engin Akyol emakyol at gmail.com
Thu Jan 26 09:27:13 UTC 2012


Hello,

Is it possible to pass variables to embedded perl modules via
nginx.conf and if so how would that be done?  For instance(approx):


http {
  perl_modules  perl/lib;
  perl_require  My::super_task.pm;
}

Server{
     location @important_task{

                perl My::super_task "A";
        }
}

-Thanks

/e



More information about the nginx mailing list