On 17/06/14 16:12, Eric Feldhusen wrote:
> Option A and that's what I figured as well.
>
If you don't care about sending the upstream response back to the
client, or want to pick one of the two responses to send back
then you can use the nginx lua module to perform some obscure
functionality... it's quite a bit more advanced but something you might
want to look into
http://wiki.nginx.org/HttpLuaModule
http://wiki.nginx.org/HttpLuaModule#ngx.location.capture_multi
however the response would be fully buffered before it could be sent to
client, so may be quite a delay and a memory hog if it's something large
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx