nginx routing based on ip address

2016-02-23 Thread keeyong
I am wondering if it is possible to compute some kind of hash value from ip address or do modulo operation on the last numeric value from ip address (for example on 24 given 172.16.4.24)? Based on this, I want to send the request to different endpoints (not to different servers). If this can be don

Re: Nginx and conditional proxy_next_upstream directive

2016-02-23 Thread Tolga Ceylan
FYI, possible related issue on nginx-dev mail list: https://forum.nginx.org/read.php?29,264637,264637#msg-264637 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx and conditional proxy_next_upstream directive

2016-02-23 Thread dontknowwhoiam
Is this question to stupid or has nobody an answer on it? ;) I just think a POSTs are not idempotent and should never be repeated for a technical reason. Is there any change to configure nginx in a way to try the next upstream only if the first one really failed when using POST requests? Timed out