Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

ngx_lua + proxy_next_upstream (no replies)

$
0
0
Hello,

I have configured:
1. ngx_lua as rewrite_by_lua_file
2. lua returns upstream
3. Nginx connects to the upstream
Works perfectly.

The question is how can I archive proxy_next_upstream.
Preferably I would like to return to lua with a error reason.
If the only way is to return several servers in upstream from lua, how to
do so ?

I'm currently setting ngx.var.upstream and then proxy_pass http://$upstream..
I suppose the simplest method would be to set the $upstream in correct
format. But what about my preferably method?

Cheers,
Jędrzej Nowak
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>