Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy that forward requests to ALL upstream servers?

Yongtao You via nginx
June 04, 2017 05:52AM
I'll give it a try.
Thanks!Yongtao


On Sunday, June 4, 2017 3:09 PM, Zhang Chao <zchao1995@gmail.com> wrote:


#yiv7683529716 body {padding:1em;margin:auto;background:#fefefe;}#yiv7683529716 h1, #yiv7683529716 h2, #yiv7683529716 h3, #yiv7683529716 h4, #yiv7683529716 h5, #yiv7683529716 h6 {font-weight:bold;}#yiv7683529716 h1 {color:#000000;font-size:28pt;}#yiv7683529716 h2 {border-bottom:1px solid #CCCCCC;color:#000000;font-size:24px;}#yiv7683529716 h3 {font-size:18px;}#yiv7683529716 h4 {font-size:16px;}#yiv7683529716 h5 {font-size:14px;}#yiv7683529716 h6 {color:#777777;background-color:inherit;font-size:14px;}#yiv7683529716 hr {min-height:0.2em;border:0;color:#CCCCCC;background-color:#CCCCCC;display:inherit;}#yiv7683529716 p, #yiv7683529716 blockquote, #yiv7683529716 ul, #yiv7683529716 ol, #yiv7683529716 dl, #yiv7683529716 li, #yiv7683529716 table, #yiv7683529716 pre {margin:15px 0;}#yiv7683529716 a, #yiv7683529716 a:visited {color:#4183C4;background-color:inherit;text-decoration:none;}#yiv7683529716 #yiv7683529716message {border-radius:6px;border:1px solid #ccc;display:block;width:100%;min-height:60px;margin:6px 0px;}#yiv7683529716 button, #yiv7683529716 #yiv7683529716ws {font-size:12 pt;padding:4px 6px;border-radius:5px;border:1px solid #bbb;background-color:#eee;}#yiv7683529716 code, #yiv7683529716 pre, #yiv7683529716 #yiv7683529716ws, #yiv7683529716 #yiv7683529716message {font-family:Monaco;font-size:10pt;border-radius:3px;background-color:#F8F8F8;color:inherit;}#yiv7683529716 code {border:1px solid #EAEAEA;margin:0 2px;padding:0 5px;}#yiv7683529716 pre {border:1px solid #CCCCCC;overflow:auto;padding:4px 8px;}#yiv7683529716 #yiv7683529716 code {border:0;margin:0;padding:0;}#yiv7683529716 #yiv7683529716ws {background-color:#f8f8f8;}#yiv7683529716 .yiv7683529716bloop_markdown table {border-collapse:collapse;font-family:Helvetica, arial, freesans, clean, sans-serif;color:rgb(51, 51, 51);font-size:15px;line-height:25px;padding:0;}#yiv7683529716 .yiv7683529716bloop_markdown table tr {border-top:1px solid #cccccc;background-color:white;margin:0;padding:0;}#yiv7683529716 .yiv7683529716bloop_markdown table tr:nth-child {background-color:#f8f8f8;}#yiv7683529716 .yiv7683529716bloop_markdown table tr th {font-weight:bold;border:1px solid #cccccc;margin:0;padding:6px 13px;}#yiv7683529716 .yiv7683529716bloop_markdown table tr td {border:1px solid #cccccc;margin:0;padding:6px 13px;}#yiv7683529716 .yiv7683529716bloop_markdown table tr th :first-child, #yiv7683529716 table tr td :first-child {margin-top:0;}#yiv7683529716 .yiv7683529716bloop_markdown table tr th :last-child, #yiv7683529716 table tr td :last-child {margin-bottom:0;}#yiv7683529716 .yiv7683529716bloop_markdown blockquote{border-left:4px solid #dddddd;padding:0 15px;color:#777777;}#yiv7683529716 #yiv7683529716 :first-child {margin-top:0;}#yiv7683529716 #yiv7683529716 :last-child {margin-bottom:0;}#yiv7683529716 code, #yiv7683529716 pre, #yiv7683529716 #yiv7683529716ws, #yiv7683529716 #yiv7683529716message {word-wrap:normal;}#yiv7683529716 hr {display:inherit;}#yiv7683529716 .yiv7683529716bloop_markdown :first-child {}#yiv7683529716 code, #yiv7683529716 pre, #yiv7683529716 #yiv7683529716ws, #yiv7683529716 #yiv7683529716message {font-family:Menlo, Consolas, Liberation Mono, Courier, monospace;}#yiv7683529716 .yiv7683529716send {color:#77bb77;}#yiv7683529716 .yiv7683529716server {color:#7799bb;}#yiv7683529716 .yiv7683529716error {color:#AA0000;}Hi!OpenResty is recommend in this case. You can combine it with the ngx_proxy module.#yiv7683529716 body{font-family:Helvetica, Arial;font-size:13px;}


On 4 June 2017 at 11:44:41, Yongtao You via nginx (nginx@nginx.org) wrote:

Hi,
I have arather special requirement. I need to setup a reverse proxy withmultiple upstream servers, and whenever a POST request comes in, Iwant NGINX to forward the request to ALL the upstream servers. Andthe response code will be the highest (worst) one among allresponses from the upstream servers. Is it doable?
Thanks.Yongtao
_______________________________________________
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

Reverse proxy that forward requests to ALL upstream servers?

Yongtao You via nginx June 03, 2017 11:46PM

Re: Reverse proxy that forward requests to ALL upstream servers?

tokers June 04, 2017 03:10AM

Re: Reverse proxy that forward requests to ALL upstream servers?

Yongtao You via nginx June 04, 2017 05:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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