Welcome! Log In Create A New Profile

Advanced

ngx_lua + proxy_next_upstream

Jedrzej Nowak
September 18, 2013 09:10AM
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
Subject Author Posted

ngx_lua + proxy_next_upstream

Jedrzej Nowak September 18, 2013 09:10AM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 19, 2013 08:36PM

Re: ngx_lua + proxy_next_upstream

Jedrzej Nowak September 23, 2013 03:18AM

Re: ngx_lua + proxy_next_upstream

Jedrzej Nowak September 24, 2013 05:36AM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 24, 2013 04:30PM

Re: ngx_lua + proxy_next_upstream

Anonymous User September 24, 2013 06:40PM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 25, 2013 02:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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