Re: Pass Lua variable in proxy pass directive

2022-05-30 Thread Sergey A. Osokin
Hi Husain, On Mon, May 30, 2022 at 07:30:10AM +, Dalroti, Husain wrote: > Hi Team, > > Is it possible to pass lua variable in proxy pass directive which we define > using set_by_lua_file directive ? > > Example : > set_by_lua_file $ref test.lua; > proxy_pass '$ref'

Pass Lua variable in proxy pass directive

2022-05-30 Thread Dalroti, Husain
Hi Team, Is it possible to pass lua variable in proxy pass directive which we define using set_by_lua_file directive ? Example : set_by_lua_file $ref test.lua; proxy_pass '$ref'; Below is lua code : local function main() local host="https://example.com; return host end return

Re: Proxy Pass

2017-04-04 Thread Aleksandar Lazic
Hi. Am 04-04-2017 17:02, schrieb Antonio Nappa: Hello, in another of my experiments I would like to redirect to a completely different website the request, I had a look at the proxy_pass directive and the corresponding module, and I see that a location handler is set, which means it will hook

Proxy Pass

2017-04-04 Thread Antonio Nappa
Hello, in another of my experiments I would like to redirect to a completely different website the request, I had a look at the proxy_pass directive and the corresponding module, and I see that a location handler is set, which means it will hook as the only content handler. My question is, could I

handler before proxy-pass

2014-05-29 Thread Donatas Abraitis
Hello, I want to add a custom 'handler', which would update ngx_os_argv[0] on request. It should be like this: root 18601 0.0 0.0 62272 3812 ?Ss 07:00 0:00 nginx: master process /opt/nginx/bin/nginx -c /opt/nginx/etc/nginx.conf web 18602 0.0 0.0 70372 7904 ?S