Welcome! Log In Create A New Profile

Advanced

(no subject)

洪志道
May 18, 2016 01:36AM
Hi

Is there a way to get selected peer in upstream without sending request to
backend server?

upstream backend {
hash $url consistent;
server 192.168.1.101;
server 192.168.1.102; # Assume this is selected
server 192.168.1.103;
}


location /302 {
proxy_pass http://backend;
# need other config or develop custom module?
}


> curl http://test.com/302 -v
....
Location: http://192.168.1.102/xxx
....

Just get selected server, and immediately return for 302 location.
Is it possible to support the feature, or give me advices, thanks so much.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

(no subject)

洪志道 303 May 18, 2016 01:36AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready