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
Post a Comment