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:
http://forum.nginx.org/read.php?2,224297,224297#msg-224297

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]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs