remote request nginx with lua -


i trying make works lua code in nginx.conf file, trying connect web application proxy_pass , depending of http result render resources. here´s code

location /_auth {     proxy_set_header  accept-encoding  "";     proxy_pass http://127.0.0.1:8080/welvi-rest; } location /server/ {     content_by_lua "         local res = ngx.location.capture('/_auth');         ngx.print(res.status);         if res.status ~= ngx.http_ok             ngx.exit(ngx.http_forbidden)         end     "; } 

but dont know why web application server in 8080 never invoked.

i read related issue because headers need add in lua, not found fix of problem


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -