Welcome! Log In Create A New Profile

Advanced

Re: how to proxy request to different upstream by url request parameters.

jqzone
March 23, 2014 09:48PM
Thanks,it works well!


On Sat, Mar 22, 2014 at 2:40 PM, Thomas Glanzmann <thomas@glanzmann.de>wrote:

> Hello,
>
> > > How to proxy request to different upstream by url request parameters?
>
> > http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky
>
> this is part of the commercial subscription, but you can probably obtain
> the same using a MAP like that:
>
> map $arg_key $backend {
> key1 backend1;
> key2 backend2;
> default fail;
> }
>
> proxy_pass http://$arg_key;
>
> Cheers,
> Thomas
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to proxy request to different upstream by url request parameters.

jqzone March 21, 2014 11:08PM

Re: how to proxy request to different upstream by url request parameters.

Thomas Glanzmann March 22, 2014 02:34AM

Re: how to proxy request to different upstream by url request parameters.

Thomas Glanzmann March 22, 2014 02:42AM

Re: how to proxy request to different upstream by url request parameters.

jqzone March 23, 2014 09:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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