Welcome! Log In Create A New Profile

Advanced

Re: Pass Lua variable in proxy pass directive

Francis Daly
May 31, 2022 02:48PM
On Tue, May 31, 2022 at 01:53:20AM -0400, husaindalroti wrote:

Hi there,

> Is it possible to pass lua variable in proxy pass directive which we define
> using set_by_lua_file directive ?

Untested, but the documentation suggests that it should work.

> set_by_lua_file $ref test.lua;
> proxy_pass '$ref';

Perhaps use:

proxy_pass $ref;

without the quotes, to match most examples of using variables in
proxy_pass.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Pass Lua variable in proxy pass directive

husaindalroti May 31, 2022 01:53AM

Re: Pass Lua variable in proxy pass directive

Francis Daly May 31, 2022 02:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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