Port range in upstream

Is it possible to specify a range of ports for the servers in upstream?

For example, something like:

upstream foo {
server 10.123.111.100 : 6000 - 7000 weight=1;
}

Posted at Nginx Forum:

On Fri, Mar 23, 2012 at 03:43:27PM -0400, spacerobot wrote:

Hi there,

Is it possible to specify a range of ports for the servers in upstream?

No.

You must list each ip:port individually.

You can “include” a file containing the upstream{} block, if you want
to keep your nginx.conf small.

f

Francis D. [email protected]